[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection ...
Ron Sigal
ron_sigal at yahoo.com
Tue Dec 19 01:17:53 EST 2006
User: rsigal
Date: 06/12/19 01:17:53
Added: src/tests/org/jboss/test/remoting/transport/bisocket/connection
Tag: remoting_2_x
BisocketConnectionCheckTestClient.java
BisocketConnectionTestCase.java
BisocketTestClient.java
BiocketConnectionCheckTestCase.java
BisocketConnectionCheckTestServer.java
BisocketTestServer.java
Log:
JBREM-650: Added more unit tests for bisocket transport.
Revision Changes Path
No revision
No revision
1.1.2.1 +20 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BisocketConnectionCheckTestClient.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketConnectionCheckTestClient.java
===================================================================
RCS file: BisocketConnectionCheckTestClient.java
diff -N BisocketConnectionCheckTestClient.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BisocketConnectionCheckTestClient.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,20 @@
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.jboss.test.remoting.transport.socket.connection.SocketConnectionCheckTestClient;
+
+/**
+ * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
+ */
+public class BisocketConnectionCheckTestClient extends SocketConnectionCheckTestClient
+{
+ protected String getTransport()
+ {
+ return "bisocket";
+ }
+
+ protected int getPort()
+ {
+ return super.getPort() + 17;
+ }
+}
1.1.2.1 +58 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BisocketConnectionTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketConnectionTestCase.java
===================================================================
RCS file: BisocketConnectionTestCase.java
diff -N BisocketConnectionTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BisocketConnectionTestCase.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,58 @@
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.apache.log4j.Level;
+import org.jboss.test.remoting.transport.InvokerTestDriver;
+
+/**
+ * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
+ */
+public class BisocketConnectionTestCase extends InvokerTestDriver
+{
+ public void declareTestClasses()
+ {
+ addTestClasses(BisocketTestClient.class.getName(),
+ 1,
+ BisocketTestServer.class.getName());
+ }
+
+ protected Level getTestLogLevel()
+ {
+ return Level.DEBUG;
+ }
+
+ /**
+ * How long to wait for test results to be returned from the client(s). If goes longer than the
+ * specified limit, will throw an exception and kill the running test cases. Default value is
+ * RESULTS_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getResultsTimeout()
+ {
+ return 600000;
+ }
+
+ /**
+ * How long for the server test case to wait for tear down message. If exceeds timeout,
+ * will throw exception. The default value is TEARDOWN_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getTearDownTimeout()
+ {
+ return 600000;
+ }
+
+ /**
+ * How long to allow each of the test cases to run their tests. If exceeds this timeout
+ * will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getRunTestTimeout()
+ {
+ return 600000;
+ }
+
+}
1.1.2.1 +42 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BisocketTestClient.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketTestClient.java
===================================================================
RCS file: BisocketTestClient.java
diff -N BisocketTestClient.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BisocketTestClient.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.jboss.test.remoting.transport.socket.connection.SocketTestClient;
+
+/**
+ * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
+ */
+public class BisocketTestClient extends SocketTestClient
+{
+ protected String getTransport()
+ {
+ return "bisocket";
+ }
+
+ protected int getPort()
+ {
+ return super.getPort() + 18;
+ }
+
+}
\ No newline at end of file
1.1.2.1 +79 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BiocketConnectionCheckTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BiocketConnectionCheckTestCase.java
===================================================================
RCS file: BiocketConnectionCheckTestCase.java
diff -N BiocketConnectionCheckTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BiocketConnectionCheckTestCase.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,79 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.jboss.test.remoting.transport.InvokerTestDriver;
+import org.apache.log4j.Level;
+
+/**
+ * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.org">Ron Sigal</a>
+ */
+public class BiocketConnectionCheckTestCase extends InvokerTestDriver
+{
+ public void declareTestClasses()
+ {
+ addTestClasses(BisocketConnectionCheckTestClient.class.getName(),
+ 1,
+ BisocketConnectionCheckTestServer.class.getName());
+ }
+
+ protected Level getTestLogLevel()
+ {
+ return Level.DEBUG;
+ }
+
+ /**
+ * How long to wait for test results to be returned from the client(s). If goes longer than the
+ * specified limit, will throw an exception and kill the running test cases. Default value is
+ * RESULTS_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getResultsTimeout()
+ {
+ return 600000;
+ }
+
+ /**
+ * How long for the server test case to wait for tear down message. If exceeds timeout,
+ * will throw exception. The default value is TEARDOWN_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getTearDownTimeout()
+ {
+ return 600000;
+ }
+
+ /**
+ * How long to allow each of the test cases to run their tests. If exceeds this timeout
+ * will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
+ *
+ * @return
+ */
+ protected long getRunTestTimeout()
+ {
+ return 600000;
+ }
+
+}
1.1.2.1 +20 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BisocketConnectionCheckTestServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketConnectionCheckTestServer.java
===================================================================
RCS file: BisocketConnectionCheckTestServer.java
diff -N BisocketConnectionCheckTestServer.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BisocketConnectionCheckTestServer.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,20 @@
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.jboss.test.remoting.transport.socket.connection.SocketConnectionCheckTestServer;
+
+/**
+ * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
+ */
+public class BisocketConnectionCheckTestServer extends SocketConnectionCheckTestServer
+{
+ protected String getTransport()
+ {
+ return "bisocket";
+ }
+
+ protected int getPort()
+ {
+ return super.getPort() + 17;
+ }
+}
1.1.2.1 +41 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/Attic/BisocketTestServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketTestServer.java
===================================================================
RCS file: BisocketTestServer.java
diff -N BisocketTestServer.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BisocketTestServer.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
@@ -0,0 +1,41 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.bisocket.connection;
+
+import org.jboss.test.remoting.transport.socket.connection.SocketTestServer;
+
+/**
+ * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
+ */
+public class BisocketTestServer extends SocketTestServer
+{
+ protected String getTransport()
+ {
+ return "bisocket";
+ }
+
+ protected int getPort()
+ {
+ return super.getPort() + 18;
+ }
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list