[Jboss-cvs] JBossAS SVN: r54924 - trunk/testsuite/src/main/org/jboss/test/jacc/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jul 31 14:53:30 EDT 2006
Author: anil.saldhana at jboss.com
Date: 2006-07-31 14:53:30 -0400 (Mon, 31 Jul 2006)
New Revision: 54924
Modified:
trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
Log:
sync with Branch_4_0
Modified: trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-07-31 18:51:41 UTC (rev 54923)
+++ trunk/testsuite/src/main/org/jboss/test/jacc/test/EJBSpecUnitTestCase.java 2006-07-31 18:53:30 UTC (rev 54924)
@@ -45,11 +45,49 @@
super(name);
}
- /**
- * Needs to be overriden because for JACC, the role "Role2"
- * is not defined as a security-role-ref
+ /**
+ * 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 testDomainInteraction()
- {
+ public void testStatefulHandle()
+ {
}
+
+ /**
+ * Setup the test suite.
+ */
+ public static Test suite() throws Exception
+ {
+ TestSuite suite = new TestSuite();
+ suite.addTest(new TestSuite(EJBSpecUnitTestCase.class));
+
+ // Create an initializer for the test suite
+ TestSetup wrapper = new JBossTestSetup(suite)
+ {
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ Configuration.setConfiguration(new XMLLoginConfigImpl());
+ redeploy("security-spec.jar");
+ flushAuthCache();
+ }
+ protected void tearDown() throws Exception
+ {
+ undeploy("security-spec.jar");
+ super.tearDown();
+
+ }
+ };
+ return wrapper;
+ }
}
More information about the jboss-cvs-commits
mailing list