[Jboss-cvs] JBossAS SVN: r56755 - trunk/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:07:44 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-12 07:07:40 -0400 (Tue, 12 Sep 2006)
New Revision: 56755
Modified:
trunk/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: trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-09-12 11:06:26 UTC (rev 56754)
+++ trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-09-12 11:07:40 UTC (rev 56755)
@@ -1,40 +1,39 @@
/*
- * 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;
-import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
-
+import junit.extensions.TestSetup;
+import org.jboss.test.JBossTestSetup;
import org.jboss.security.auth.login.XMLLoginConfigImpl;
-import org.jboss.test.JBossTestSetup;
/** 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
@@ -46,31 +45,49 @@
}
/**
- * Needs to be overriden because for JACC, the role "Role2"
- * is not defined as a security-role-ref
- */
- public void testDomainInteraction()
- {
- }
-
- /**
- * @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()
- {
- }
-
- /**
* 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)
{
@@ -90,4 +107,5 @@
};
return wrapper;
}
+
}
More information about the jboss-cvs-commits
mailing list