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