[jboss-user] [JBoss AOP] New message: "Re: withincode from JUnit test not working"
Alan Nisbet
do-not-reply at jboss.com
Thu Jan 28 09:18:56 EST 2010
User development,
A new message was posted in the thread "withincode from JUnit test not working":
http://community.jboss.org/message/522758#522758
Author : Alan Nisbet
Profile : http://community.jboss.org/people/nizzy
Message:
--------------------------------------------------------------
Thanks for the response!
"First thing I would try is replacing the withincode by a simple within"
<aspect class="com.ecebs.unittest.aop.aspect.ExceptionInjector" scope="PER_CLASS" />
<bind pointcut="call(public void com.ecebs.unittest.aop.ExampleManagerBean->createObject(..))
AND within(com.ecebs.unittest.aop.ExampleManagerBeanTest)">
<advice name="throwMultefileException" aspect="com.ecebs.unittest.aop.aspect.ExceptionInjector" />
</bind>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522758#522758
More information about the jboss-user
mailing list