User: d_jencks
Date: 01/09/18 15:00:44
Modified: src/main/org/jboss/test/mdb/test MDBUnitTestCase.java
Log:
Changed tests to deploy/undeploy only once per testcase file. Moved clearAuthCache
to JBossTestServices
Revision Changes Path
1.3 +6 -12 jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java
Index: MDBUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/mdb/test/MDBUnitTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MDBUnitTestCase.java 2001/09/15 19:20:13 1.2
+++ MDBUnitTestCase.java 2001/09/18 22:00:44 1.3
@@ -51,7 +51,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Antman</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
- * @version <pre>$Revision: 1.2 $</pre>
+ * @version <pre>$Revision: 1.3 $</pre>
*/
public class MDBUnitTestCase
extends JBossTestCase
@@ -79,12 +79,6 @@
// provider specific queue and topic names!!
}
- protected void setUp() throws Exception
- {
- super.setUp();
- deployJ2ee("mdb.jar");
- // test methods call getXXXSession() to create session & connection
- }
protected void tearDown() throws Exception {
if (topicConnection != null) {
@@ -93,8 +87,6 @@
if (queueConnection != null) {
queueConnection.close();
}
- undeployJ2ee("mdb.jar");
- super.tearDown();
}
protected void printHeader() {
@@ -189,15 +181,17 @@
/**
* Setup the test suite.
*/
- public static Test suite() {
+ public static Test suite() throws Exception
+ {
TestSuite suite = new TestSuite();
suite.addTest(new MDBUnitTestCase("testObjectMessage",""));
suite.addTest(new MDBUnitTestCase("testQueue","queue/testQueue"));
suite.addTest(new MDBUnitTestCase("testTopic","topic/testTopic"));
suite.addTest(new MDBUnitTestCase("testTopic","topic/testDurableTopic"));
suite.addTest(new MDBUnitTestCase("testQueue","queue/ex"));
- return suite;
- }
+
+ return getJ2eeSetup(suite, "mdb.jar");
+ }
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development