[Jboss-cvs] JBossAS SVN: r56756 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/naming/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 12 07:32:18 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-12 07:32:13 -0400 (Tue, 12 Sep 2006)
New Revision: 56756
Modified:
branches/Branch_4_0/testsuite/src/main/org/jboss/test/naming/test/SecurityUnitTestCase.java
Log:
JBAS-3606, the execution order of tests in this test case is important so it must be defined explicitly when running under some JVMs
Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/naming/test/SecurityUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/naming/test/SecurityUnitTestCase.java 2006-09-12 11:07:40 UTC (rev 56755)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/naming/test/SecurityUnitTestCase.java 2006-09-12 11:32:13 UTC (rev 56756)
@@ -1,47 +1,70 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.naming.test;
+import java.lang.reflect.UndeclaredThrowableException;
+import java.security.Principal;
import java.util.Properties;
-import java.security.Principal;
-import java.lang.reflect.UndeclaredThrowableException;
+
import javax.naming.Context;
import javax.naming.InitialContext;
+import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
-import javax.naming.NamingEnumeration;
+import javax.rmi.PortableRemoteObject;
import javax.security.auth.login.LoginContext;
-import javax.rmi.PortableRemoteObject;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.security.SecurityAssociation;
import org.jboss.test.JBossTestCase;
import org.jboss.test.naming.interfaces.TestENC;
import org.jboss.test.naming.interfaces.TestENCHome;
import org.jboss.test.util.AppCallbackHandler;
-import org.jboss.security.SecurityAssociation;
/** Tests of secured access to the JNDI naming service. This testsuite will
* be run with the standard security resources available via the classpath.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
*/
public class SecurityUnitTestCase extends JBossTestCase
{
+ public static Test suite() throws Exception
+ {
+ // JBAS-3606, 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 SecurityUnitTestCase("testSecureHttpInvokerFailure"));
+ suite.addTest(new SecurityUnitTestCase("testSecureHttpInvoker"));
+ suite.addTest(new SecurityUnitTestCase("testHttpReadonlyLookup"));
+ suite.addTest(new SecurityUnitTestCase("testHttpReadonlyContextLookup"));
+ suite.addTest(new SecurityUnitTestCase("testLoginInitialContext"));
+ suite.addTest(new SecurityUnitTestCase("testSecureEJBViaLoginInitialContextFactory"));
+ suite.addTest(new SecurityUnitTestCase("testSecureEJBViaJndiLoginInitialContextFactory"));
+
+ return suite;
+ }
+
/**
* Constructor for the SecurityUnitTestCase object
*
More information about the jboss-cvs-commits
mailing list