User: d_jencks
Date: 01/09/18 15:00:43
Modified: src/main/org/jboss/test/idgen/test IdGenUnitTestCase.java
Log:
Changed tests to deploy/undeploy only once per testcase file. Moved clearAuthCache
to JBossTestServices
Revision Changes Path
1.4 +4 -11
jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java
Index: IdGenUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IdGenUnitTestCase.java 2001/09/15 01:27:05 1.3
+++ IdGenUnitTestCase.java 2001/09/18 22:00:43 1.4
@@ -26,7 +26,7 @@
/**
* @see <related>
* @author Author: d_jencks only added JBossTestCase and logging
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class IdGenUnitTestCase
extends JBossTestCase
@@ -80,8 +80,6 @@
protected void setUp()
throws Exception
{
- super.setUp();
- deployJ2ee("idgen.jar");
getLog().debug("Remove id counters");
{
IdCounterHome home = (IdCounterHome)new
InitialContext().lookup(IdCounterHome.JNDI_NAME);
@@ -96,14 +94,9 @@
}
}
- /**
- * The teardown method for JUnit
- *
- * @exception Exception Description of Exception
- */
- protected void tearDown() throws Exception
+ public static Test suite() throws Exception
{
- undeployJ2ee("idgen.jar");
- super.tearDown();
+ return getJ2eeSetup(IdGenUnitTestCase.class, "idgen.jar");
}
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development