Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » AspectJ, JUnit and Command line Problem(Aspect is not woven correctly with JUnit)
AspectJ, JUnit and Command line Problem [message #690116] Wed, 29 June 2011 02:28 Go to next message
Mahdi  is currently offline Mahdi Friend
Messages: 3
Registered: June 2011
Junior Member
hello everyone,
i want to run Junit from command line for a small program that has one aspect.
below is what i tried so far and it is not working. Two Junit test cases fail because the aspect is not woven correctly. It works correctly with Eclipse but not with the command line. any help is highly appreciated.
Thanks

set CLASSPATH=D:\Jars\junit-4.8.jar;D:\workspace\MovieRentalAspect\bin;D:\workspace\MovieRentalAspect\src;c:\aspectj1.5\bin;C:\aspectj1.5\lib\aspectjrt.jar;C:\aspectj1.5\lib\aspectjlib.jar;C:\aspectj1.5\lib\aspectjtools.jar;C:\aspectj1.5\lib\aspectjweaver.jar
javac -cp org.\junit-4.8.jar MainClassJunit.java Rental.java Movie.java Customer.java
ajc MainClass.java Rental.java Movie.java Customer.java Billing.aj
java org.junit.runner.JUnitCore MainClassJunit

two test cases fail that do not fail when running in aspect. the reason is that the aspect is not woven correctly.

Mahdi
Re: AspectJ, JUnit and Command line Problem [message #690580 is a reply to message #690116] Wed, 29 June 2011 18:57 Go to previous message
Mahdi  is currently offline Mahdi Friend
Messages: 3
Registered: June 2011
Junior Member
Any help guys???
Previous Topic:Engage Source -> Format
Next Topic:How to run Junit from command line with AspectJ program
Goto Forum:
  


Current Time: Sat Dec 20 05:18:42 GMT 2014

Powered by FUDForum. Page generated in 0.01690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software