[jboss-cvs] JBossAS SVN: r60663 - 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 19 06:37:11 EST 2007
Author: wolfc
Date: 2007-02-19 06:37:11 -0500 (Mon, 19 Feb 2007)
New Revision: 60663
Modified:
branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java
Log:
Fixed jacc testChecked
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-19 10:38:50 UTC (rev 60662)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/jacc/unit/JaccTestCase.java 2007-02-19 11:37:11 UTC (rev 60663)
@@ -22,6 +22,7 @@
package org.jboss.ejb3.test.jacc.unit;
+import javax.ejb.EJBAccessException;
import javax.ejb.EJBException;
import org.jboss.ejb3.test.jacc.AllEntity;
import org.jboss.ejb3.test.jacc.SomeEntity;
@@ -98,7 +99,7 @@
{
stateful.checked(500);
}
- catch (SecurityException e){
+ catch (EJBAccessException e){
securityException = true;
}
@@ -108,7 +109,7 @@
{
stateless.checked(501);
}
- catch (SecurityException e){
+ catch (EJBAccessException e){
securityException = true;
}
@@ -417,7 +418,7 @@
{
//System.out.println(t);
String classname = t.getClass().getName();
- if (classname.equals(SecurityException.class.getName()) ||
+ if (classname.equals(EJBAccessException.class.getName()) ||
classname.equals(EJBException.class.getName()) )
{
return;
@@ -425,7 +426,7 @@
t = t.getCause();
}
- throw new FailedException("SecurityException not thrown");
+ throw new FailedException("EJBAccessException not thrown");
}
More information about the jboss-cvs-commits
mailing list