[jboss-cvs] JBossAS SVN: r57260 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/security/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 28 07:01:44 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-28 07:01:40 -0400 (Thu, 28 Sep 2006)
New Revision: 57260
Modified:
branches/Branch_4_0/testsuite/src/main/org/jboss/test/security/test/JaasSecurityManagerUnitTestCase.java
Log:
JBAS-3716, fix the test execution order
Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/security/test/JaasSecurityManagerUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/security/test/JaasSecurityManagerUnitTestCase.java 2006-09-28 10:52:03 UTC (rev 57259)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/security/test/JaasSecurityManagerUnitTestCase.java 2006-09-28 11:01:40 UTC (rev 57260)
@@ -21,28 +21,32 @@
*/
package org.jboss.test.security.test;
+import java.security.acl.Group;
import java.util.HashMap;
-import java.security.acl.Group;
+
import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.Configuration;
-import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.LoginException;
-import org.jboss.security.plugins.JaasSecurityManager;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.jboss.logging.Logger;
+import org.jboss.security.SimplePrincipal;
import org.jboss.security.auth.callback.SecurityAssociationHandler;
import org.jboss.security.auth.spi.UsernamePasswordLoginModule;
-import org.jboss.security.SimplePrincipal;
+import org.jboss.security.plugins.JaasSecurityManager;
import org.jboss.util.TimedCachePolicy;
-import org.jboss.logging.Logger;
-import junit.framework.TestCase;
-/** Tests of the JaasSecurityManager implementation.
-
- @author Scott.Stark at jboss.org
- @version $Revision$
+/**
+ * Tests of the JaasSecurityManager implementation.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
*/
-public class JaasSecurityManagerUnitTestCase
- extends TestCase
+public class JaasSecurityManagerUnitTestCase extends TestCase
{
static Logger log = Logger.getLogger(JaasSecurityManagerUnitTestCase.class);
@@ -51,6 +55,17 @@
super(name);
}
+ public static Test suite() throws Exception
+ {
+ // JBAS-3716, the execution order of tests in this test case is important
+ // so it must be defined explicitly when running under some JVMs
+ TestSuite suite = new TestSuite();
+ suite.addTest(new JaasSecurityManagerUnitTestCase("testStringCharArrayCredential"));
+ suite.addTest(new JaasSecurityManagerUnitTestCase("testCharArrayStringCredential"));
+
+ return suite;
+ }
+
/**
* Setup the JAAS configuration
* @throws Exception
More information about the jboss-cvs-commits
mailing list