[jboss-cvs] JBossAS SVN: r82150 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/stateless/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 9 10:11:16 EST 2008
Author: wolfc
Date: 2008-12-09 10:11:16 -0500 (Tue, 09 Dec 2008)
New Revision: 82150
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/stateless/unit/StatelessTestCase.java
Log:
EJBTHREE-1241: logout before changing credentials and login again
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/stateless/unit/StatelessTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/stateless/unit/StatelessTestCase.java 2008-12-09 14:58:19 UTC (rev 82149)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/stateless/unit/StatelessTestCase.java 2008-12-09 15:11:16 UTC (rev 82150)
@@ -23,18 +23,16 @@
import javax.ejb.EJBAccessException;
+import junit.framework.Test;
+
import org.jboss.ejb3.test.stateless.AnonymousStateless;
import org.jboss.ejb3.test.stateless.CheckedStateless;
+import org.jboss.ejb3.test.stateless.RunAsStateless;
import org.jboss.ejb3.test.stateless.UnsecuredStateless;
-import org.jboss.ejb3.test.stateless.RunAsStateless;
-import org.jboss.ejb3.test.stateless.RunAsStatelessLocal;
import org.jboss.logging.Logger;
-import org.jboss.security.SecurityAssociation;
-import org.jboss.security.SimplePrincipal;
import org.jboss.security.client.SecurityClient;
import org.jboss.security.client.SecurityClientFactory;
import org.jboss.test.JBossTestCase;
-import junit.framework.Test;
/**
* @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
@@ -84,7 +82,10 @@
int result = checked.method(1);
assertEquals(1,result);
+ client.logout();
+
client.setSimple("rolefail", "password");
+ client.login();
try {
checked.method(2);
More information about the jboss-cvs-commits
mailing list