User: d_jencks
Date: 01/09/17 10:33:53
Modified: src/main/org/jboss/test/readahead/test
ReadAheadUnitTestCase.java
Log:
Finished converting to JBossTestCase for deploy and logging. Security tests still
do not work due to deploy problems
Revision Changes Path
1.2 +19 -15
jbosstest/src/main/org/jboss/test/readahead/test/ReadAheadUnitTestCase.java
Index: ReadAheadUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/readahead/test/ReadAheadUnitTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ReadAheadUnitTestCase.java 2001/09/12 04:55:40 1.1
+++ ReadAheadUnitTestCase.java 2001/09/17 17:33:53 1.2
@@ -1,3 +1,10 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
package org.jboss.test.readahead.test;
import javax.naming.Context;
@@ -10,17 +17,17 @@
import org.jboss.test.readahead.interfaces.CMPFindTestSessionHome;
import org.jboss.test.readahead.interfaces.CMPFindTestSessionRemote;
-import org.jboss.test.util.Deploy;
+import org.jboss.test.JBossTestCase;
/**
* TestCase driver for the readahead finder tests
*
* @author <a href="mailto:[EMAIL PROTECTED]">danch (Dan Christopherson</a>
- * @version $Id: ReadAheadUnitTestCase.java,v 1.1 2001/09/12 04:55:40 d_jencks Exp $
+ * @version $Id: ReadAheadUnitTestCase.java,v 1.2 2001/09/17 17:33:53 d_jencks Exp $
*
* Revision:
*/
-public class ReadAheadUnitTestCase extends TestCase {
+public class ReadAheadUnitTestCase extends JBossTestCase {
CMPFindTestSessionRemote rem = null;
@@ -30,28 +37,25 @@
protected void tearDown() throws Exception {
if (rem != null) {
- System.out.println("Removing test data");
+ getLog().debug("Removing test data");
rem.removeTestData();
rem.remove();
rem = null;
}
+ undeployJ2ee("readahead.jar");
+ super.tearDown();
}
protected void setUp()
throws Exception
{
- if (rem != null)
- return;
-
- // System.out.println("Deploying");
- // new org.jboss.jmx.client.Deployer().deploy("../deploy/readahead.jar");
-
- System.out.println("Creating test data");
- Context ctx = new InitialContext();
+ super.setUp();
+ deployJ2ee("readahead.jar");
+ getLog().debug("Creating test data");
CMPFindTestSessionHome home =
- (CMPFindTestSessionHome)ctx.lookup("CMPFindTestSession");
+ (CMPFindTestSessionHome)getInitialContext().lookup("CMPFindTestSession");
rem = home.create();
rem.createTestData();
@@ -71,7 +75,7 @@
/**
* Setup the test suite.
- */
+ * /
public static Test suite() {
TestSuite suite = new TestSuite();
@@ -85,5 +89,5 @@
suite.addTest(new Deploy.Undeployer(filename));
return suite;
- }
+ }*/
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development