[jboss-user] [JBoss Seam] - Re: TestNG and EJB3 interceptors
fbenvegna
do-not-reply at jboss.com
Thu Nov 8 05:18:20 EST 2007
My problem was test.
I add a @BeforeMethod method inside test class for creating EJB and interceptor works fine.
I don't know if it's a good solution.
If you have any idea or comment, tell me please.
| @BeforeMethod
| public void before() throws Exception {
| if (groupManager == null)
| new FacesRequest() {
| protected void invokeApplication() throws Exception {
| groupManager = (IGroupManager) Component
| .getInstance("groupManager");
| }
| }.run();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102832#4102832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102832
More information about the jboss-user
mailing list