User: starksm
Date: 01/07/08 18:06:04
Modified: src/main/org/jboss/test/jrmp/test Tag: Branch_2_4
TestCustomSockets.java TestDynLoading.java
Log:
Merge latest changes from main to the 2.4 branch
Revision Changes Path
No revision
No revision
1.2.2.1 +26 -2
jbosstest/src/main/org/jboss/test/jrmp/test/TestCustomSockets.java
Index: TestCustomSockets.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jrmp/test/TestCustomSockets.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- TestCustomSockets.java 2001/06/19 02:50:28 1.2
+++ TestCustomSockets.java 2001/07/09 01:06:04 1.2.2.1
@@ -6,6 +6,10 @@
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
import org.jboss.test.jrmp.interfaces.StatelessSession;
import org.jboss.test.jrmp.interfaces.StatelessSessionHome;
import org.jboss.test.util.Deploy;
@@ -14,7 +18,7 @@
container invoker.
@author [EMAIL PROTECTED]
-@version $Revision: 1.2 $
+@version $Revision: 1.2.2.1 $
*/
public class TestCustomSockets extends junit.framework.TestCase
{
@@ -25,7 +29,7 @@
protected void setUp() throws Exception
{
- Deploy.deploy("jrmp-comp.jar");
+ // Deploy.deploy("jrmp-comp.jar");
}
public void testCustomAccess() throws Exception
@@ -57,4 +61,24 @@
bean.remove();
}
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+
+ try {
+ String filename = "../deploy/jrmp-comp.jar";
+ System.out.println("Deploying...");
+ Deploy.deploy(filename);
+
+ suite.addTest(new TestSuite(TestCustomSockets.class));
+
+ // add a test case to undeploy our support applications
+ suite.addTest(new Deploy.Undeployer(filename));
+ }
+ catch (Throwable t) {
+ t.printStackTrace();
+ System.exit(0);
+ }
+
+ return suite;
+ }
}
1.1.2.1 +29 -3 jbosstest/src/main/org/jboss/test/jrmp/test/TestDynLoading.java
Index: TestDynLoading.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jrmp/test/TestDynLoading.java,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- TestDynLoading.java 2001/06/19 02:50:28 1.1
+++ TestDynLoading.java 2001/07/09 01:06:04 1.1.2.1
@@ -6,15 +6,20 @@
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
import org.jboss.test.jrmp.interfaces.IString;
import org.jboss.test.jrmp.interfaces.StatelessSession;
import org.jboss.test.jrmp.interfaces.StatelessSessionHome;
+
import org.jboss.test.util.Deploy;
/** Test of RMI dynamic class loading.
@author [EMAIL PROTECTED]
-@version $Revision: 1.1 $
+@version $Revision: 1.1.2.1 $
*/
public class TestDynLoading extends junit.framework.TestCase
{
@@ -26,8 +31,8 @@
protected void setUp() throws Exception
{
- System.out.println("TestDynLoading.setup(jrmp-dl.jar)");
- Deploy.deploy("jrmp-dl.jar");
+ // System.out.println("TestDynLoading.setup(jrmp-dl.jar)");
+ // Deploy.deploy("jrmp-dl.jar");
}
public void testAccess() throws Exception
@@ -43,6 +48,27 @@
System.out.println("bean.copy(jrmp-dl) = "+echo);
System.out.println("IString.class = "+echo.getClass());
bean.remove();
+ }
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+
+ try {
+ String filename = "../deploy/jrmp-dl.jar";
+ System.out.println("Deploying...");
+ Deploy.deploy(filename);
+
+ suite.addTest(new TestSuite(TestDynLoading.class));
+
+ // add a test case to undeploy our support applications
+ suite.addTest(new Deploy.Undeployer(filename));
+ }
+ catch (Throwable t) {
+ t.printStackTrace();
+ System.exit(0);
+ }
+
+ return suite;
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development