[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
gagool
do-not-reply at jboss.com
Fri Aug 10 09:04:06 EDT 2007
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
More information about the jboss-user
mailing list