Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to run Junit from command line with AspectJ program(How to run Junit from command line with AspectJ program)
How to run Junit from command line with AspectJ program [message #690582] Wed, 29 June 2011 18:58
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
Previous Topic:AspectJ, JUnit and Command line Problem
Next Topic:Javassist in eclipse help required....
Goto Forum:
  


Current Time: Tue May 14 06:28:16 GMT 2024

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

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

Back to the top