Skip to main content



      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] Tue, 28 June 2011 22:28 Go to next message
Eclipse UserFriend
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 14:57 Go to previous message
Eclipse UserFriend
Any help guys???
Previous Topic:Engage Source -> Format
Next Topic:How to run Junit from command line with AspectJ program
Goto Forum:
  


Current Time: Wed Jul 23 00:33:13 EDT 2025

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

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

Back to the top