*
The moose likes Other Java Products and Servers and the fly likes JUnit and Ant with AspectJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JUnit and Ant with AspectJ" Watch "JUnit and Ant with AspectJ" New topic
Author

JUnit and Ant with AspectJ

chris coleman
Ranch Hand

Joined: Mar 06, 2002
Posts: 42
Here is question.. what would you do to integrate these three pieces, so that the unit test and build processes are aware of and correctly handle the aspects introduced by AspectJ.


Sun Certified Java Programmer for the Java2(tm) Platform<br />IBM Certified Solution Developer, WebSphere 3.5
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

The last section of RamNivas Book talks about Ant integration.
http://www.manning.com/getpage.html?project=laddad&filename=contents.html


Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Regarding unit tests, I'd like to throw a couple of questions out in the open...
1) Should unit tests know about aspects?
2) Should aspects be allowed to change the user-visible behaviour of a class?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Will JUnit understand Aspects?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
Will JUnit understand Aspects?

No, but it doesn't need to. JUnit is a framework--a set of classes that aid you in developing and running your own unit tests for your Java classes. Another question would be whether someone is developing a JUnit extension called "AJUnit" etc... (or whether a unit testing framework for aspect code is needed at all)
 
 
subject: JUnit and Ant with AspectJ
 
Similar Threads
What is the advatages of jboss-aop
Using Reflection to determine method invocation
What other features would you like to see in IntelliJ ?
AspectJ
Tool to view objects created