[jboss-user] [JBoss AOP] New message: "Re: withincode from JUnit test not working"

Alan Nisbet do-not-reply at jboss.com
Thu Jan 28 11:47:11 EST 2010

User development,

A new message was posted in the thread "withincode from JUnit test not working":


Author  : Alan Nisbet
Profile : http://community.jboss.org/people/nizzy

Flavio your a genius, well as far as I'm concerned anyway, 
In JUnit test (ExampleManagerBeanTest) changed;
private ExampleManager man;

where ExampleManager is the remote interface of the ExampleManagerBean to;
private ExampleManagerBean man;

And that seemed to do the trick. The exception was thrown as I would have expected. I will also try the alteration to the pointcut you suggested, however the quck check was enough for now. Normally when testing session beans outside the container we explicitly create instance of the class directly, and do not use the interface.
It always simple when you know the solution, 
Thanks for the help, I simply did not know what else to try!


To reply to this message visit the message page: http://community.jboss.org/message/522818#522818

More information about the jboss-user mailing list