I just did it like this...

  | ...
  |                     @Override
  |                     protected void invokeApplication() throws Exception {
  |                             Exception ex = new Exception();
  | 
  |                             try {
  |                                     
invokeMethod("#{registeraccount.register}");
  |                             } catch (Exception e) {
  |                                     ex = e;
  |                             }
  |                             assert ex.getCause() instanceof 
EJBTransactionRolledbackException;
  |                             assert ex.getCause().getCause() instanceof 
RegisterAccountActionException;
  |                     }
  | ...
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073016
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to