How to run Junit from command line with AspectJ program [message #690582] |
Wed, 29 June 2011 18:58 |
Mahdi 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
|
|
|
Powered by
FUDForum. Page generated in 0.08630 seconds