Testing that a pointcut expression is contained within a set of classes/jar

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Testing that a pointcut expression is contained within a set of classes/jar

by D'Arcy, Hamlet B :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to write a JUnit test that verifies that my pointcuts are valid
within my project. My pointcuts are stored in an XML file, and sometimes
refactorings break the expression. Thus, I want to assert that a certain
pointcut stored in XML has at least one matching target within my
project.

For instance, my pointcut is:
  * com.sample.MyObject.*(..)

And my jar is: MyProject.jar

Is there a way to analyze MyProject.jar for matching
classes/methods/fields?
Is there a way to analyze everything on the classpath for matching
classes/methods/fields?

Thanks,

--
Hamlet D'Arcy
hamlet.darcy@...
+1(952)681-3636  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email