User: starksm
Date: 01/09/18 07:36:19
Modified: src/main/org/jboss/test/security/test
EJBSpecUnitTestCase.java
Log:
Update to use JBossTestSetup rather than JBossTestServices directly.
Revision Changes Path
1.4 +19 -27
jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java
Index: EJBSpecUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/EJBSpecUnitTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- EJBSpecUnitTestCase.java 2001/09/18 08:23:25 1.3
+++ EJBSpecUnitTestCase.java 2001/09/18 14:36:18 1.4
@@ -37,13 +37,13 @@
import org.jboss.jmx.connector.rmi.RMIConnector;
import org.jboss.test.util.AppCallbackHandler;
import org.jboss.test.JBossTestCase;
-import org.jboss.test.JBossTestServices;
+import org.jboss.test.JBossTestSetup;
/** Test of EJB spec conformace using the security-spec.jar
deployment unit. These test the basic role based access model.
@author [EMAIL PROTECTED]
- @version $Revision: 1.3 $
+ @version $Revision: 1.4 $
*/
public class EJBSpecUnitTestCase
extends JBossTestCase
@@ -54,7 +54,7 @@
LoginContext lc;
boolean loggedIn;
-
+
public EJBSpecUnitTestCase(String name)
{
super(name);
@@ -359,32 +359,24 @@
{
TestSuite suite = new TestSuite();
suite.addTest(new TestSuite(EJBSpecUnitTestCase.class));
-
- // Create an initializer for the test suite
- TestSetup wrapper= new SetupWrapper(suite);
- return wrapper;
- }
- static class SetupWrapper extends TestSetup
- {
- JBossTestServices services;
-
- SetupWrapper(TestSuite suite)
+ // Create an initializer for the test suite
+ TestSetup wrapper = new JBossTestSetup(suite)
{
- super(suite);
- services = new JBossTestServices(EJBSpecUnitTestCase.class.getName());
- }
- protected void setUp() throws Exception
- {
- services.setUp();
- services.deployJ2ee("security-spec.jar");
- flushAuthCache();
- }
- protected void tearDown() throws Exception
- {
- services.undeployJ2ee("security-spec.jar");
- services.tearDown();
- }
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ deployJ2ee("security-spec.jar");
+ flushAuthCache();
+ }
+ protected void tearDown() throws Exception
+ {
+ undeployJ2ee("security-spec.jar");
+ super.tearDown();
+
+ }
+ };
+ return wrapper;
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development