[Jboss-cvs] JBossAS SVN: r56754 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/jacc/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 12 07:06:31 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-12 07:06:26 -0400 (Tue, 12 Sep 2006)
New Revision: 56754
Modified:
branches/Branch_4_0/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
Log:
JBAS-3602, 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/jacc/test/EJBSpecUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-09-12 09:36:30 UTC (rev 56753)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-09-12 11:06:26 UTC (rev 56754)
@@ -1,24 +1,24 @@
/*
-* 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.jacc.test;
import javax.security.auth.login.Configuration;
@@ -30,10 +30,10 @@
import org.jboss.security.auth.login.XMLLoginConfigImpl;
/** Test of EJB spec conformace using the security-spec.jar
- deployment unit when running under a JACC authorization manager.
-
- at author Scott.Stark at jboss.org
- at version $Revision$
+ * deployment unit when running under a JACC authorization manager.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
*/
public class EJBSpecUnitTestCase
extends org.jboss.test.security.test.EJBSpecUnitTestCase
@@ -45,31 +45,49 @@
}
/**
- * @todo this fails under JACC because there is no automatic granting
- * of the correct create permissions needed for the handle activation. This
- * is due to the implementation detail of the handle calling back into
- * the container on activation.
- */
- public void testStatefulHandle()
- {
- }
-
- /**
- * Needs to be overriden because for JACC, the role "Role2"
- * is not defined as a security-role-ref
- */
- public void testDomainInteraction()
- {
- }
-
- /**
* Setup the test suite.
*/
public static Test suite() throws Exception
{
+ // JBAS-3602, 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 TestSuite(EJBSpecUnitTestCase.class));
+
+ // @todo this fails under JACC because there is no automatic granting
+ // of the correct create permissions needed for the handle activation. This
+ // is due to the implementation detail of the handle calling back into
+ // the container on activation.
+ //suite.addTest(new EJBSpecUnitTestCase("testStatefulHandle"));
+
+ // Needs to be excluded because for JACC, the role "Role2"
+ // is not defined as a security-role-ref
+ //suite.addTest(new EJBSpecUnitTestCase("testDomainInteraction"));
+ // All are baseclass tests
+ suite.addTest(new EJBSpecUnitTestCase("testSecurityDomain"));
+ suite.addTest(new EJBSpecUnitTestCase("testStatefulCreateCaller"));
+ suite.addTest(new EJBSpecUnitTestCase("testGetCallerPrincipal"));
+ suite.addTest(new EJBSpecUnitTestCase("testPrincipalPropagation"));
+ suite.addTest(new EJBSpecUnitTestCase("testMethodAccess"));
+ suite.addTest(new EJBSpecUnitTestCase("testDomainMethodAccess"));
+ suite.addTest(new EJBSpecUnitTestCase("testMethodAccess2"));
+ suite.addTest(new EJBSpecUnitTestCase("testLocalMethodAccess"));
+ suite.addTest(new EJBSpecUnitTestCase("testUncheckedRemote"));
+ suite.addTest(new EJBSpecUnitTestCase("testRemoteUnchecked"));
+ suite.addTest(new EJBSpecUnitTestCase("testUnchecked"));
+ suite.addTest(new EJBSpecUnitTestCase("testUncheckedWithLogin"));
+ suite.addTest(new EJBSpecUnitTestCase("testExcluded"));
+ suite.addTest(new EJBSpecUnitTestCase("testRunAs"));
+ suite.addTest(new EJBSpecUnitTestCase("testDeepRunAs"));
+ suite.addTest(new EJBSpecUnitTestCase("testRunAsSFSB"));
+ suite.addTest(new EJBSpecUnitTestCase("testJBAS1852"));
+ suite.addTest(new EJBSpecUnitTestCase("testMDBRunAs"));
+ suite.addTest(new EJBSpecUnitTestCase("testMDBDeepRunAs"));
+ suite.addTest(new EJBSpecUnitTestCase("testRunAsWithRoles"));
+ suite.addTest(new EJBSpecUnitTestCase("testHandle"));
+ suite.addTest(new EJBSpecUnitTestCase("testStress"));
+ suite.addTest(new EJBSpecUnitTestCase("testStressNoJaasCache"));
+
// Create an initializer for the test suite
TestSetup wrapper = new JBossTestSetup(suite)
{
More information about the jboss-cvs-commits
mailing list