[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing

flavia.rainone@jboss.com do-not-reply at jboss.com
Fri Mar 27 13:16:16 EDT 2009


Yes, there is a way to overcome this issue.

You have to use a call pointcut instead of a execution pointcut, because this way you can match who is performing the call.

So, binding the following pointcut expression to throwMultefileException advice should fix your problem:

call(public void com.ecebs.unittest.aop.AOPUnitTestManagerBean->createObject(..)) AND withincode(public void *->testCreateObject_MultefileException())

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221636#4221636

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221636



More information about the jboss-user mailing list