Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.1
-
Component/s: None
-
Labels:None
-
Environment:maven-1.0-rc1, WinXP, J2SE 1.4.2
-
Number of attachments :
Description
I have recently started to use virtual mock objects (http://www.virtualmock.org) that make heavy use of AspectJ in the test cases of a maven project.
I noticed that the latest AspectJ plugin has support for autoweaving the project sources, but not the test sources.
Once you have resolved how to weave the compiled classes instead of just the JAR, how difficult would it be to autoweave the test classes as well?
It would be easy to autoweave the test but I'm not sure it should be part of the aspectj plugin. I have on my machine another plugin that I have never committed (and which is not finished) which I called ajtest. For AspectJ test. It's for implement unit testing with AspectJ. It looks for test sources in src/test-aspectj which allows to cleanly spearate pure JUnit tests from AspectJ-based unit tests. Not sure if I'll have the time to work on it before a long time but this is something that I would have liked to see too. That said, I'm currently working on Cactus2 (along with a Maven plugin) which uses the same principle (it's using AspectWerkz) except the code runs on server side and most of my free time is currently used by Cactus2.