[jboss-cvs] JBossAS SVN: r60902 - branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 26 05:27:54 EST 2007
Author: wolfc
Date: 2007-02-26 05:27:53 -0500 (Mon, 26 Feb 2007)
New Revision: 60902
Modified:
branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java
Log:
EJBTHREE-894: modified unit test
Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java 2007-02-26 10:24:12 UTC (rev 60901)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java 2007-02-26 10:27:53 UTC (rev 60902)
@@ -24,6 +24,8 @@
import javax.ejb.EJBAccessException;
import javax.ejb.EJBException;
+import javax.transaction.RollbackException;
+
import org.jboss.ejb3.test.jacc.AllEntity;
import org.jboss.ejb3.test.jacc.SomeEntity;
import org.jboss.ejb3.test.jacc.StarEntity;
@@ -391,7 +393,12 @@
}
catch (Exception ex)
{
- hasSecurityOrEJBException(ex);
+ if(ex.getCause() != null && ex.getCause() instanceof RollbackException)
+ {
+ System.out.println("EJBTHREE-894");
+ }
+ else
+ hasSecurityOrEJBException(ex);
}
try
More information about the jboss-cvs-commits
mailing list