[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/connection_check ...
Ron Sigal
ron_sigal at yahoo.com
Wed Dec 27 01:14:53 EST 2006
User: rsigal
Date: 06/12/27 01:14:53
Added: src/tests/org/jboss/test/remoting/transport/bisocket/ssl/connection_check
SSLBisocketInvokerClientTest.java
SSLBisocketInvokerServerTest.java
SSLBisocketInvokerTestCase.java
Log:
JBREM-650: Unit tests for sslbisocket transport.
Revision Changes Path
1.2 +26 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/connection_check/SSLBisocketInvokerClientTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLBisocketInvokerClientTest.java
===================================================================
RCS file: SSLBisocketInvokerClientTest.java
diff -N SSLBisocketInvokerClientTest.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLBisocketInvokerClientTest.java 27 Dec 2006 06:14:53 -0000 1.2
@@ -0,0 +1,26 @@
+package org.jboss.test.remoting.transport.bisocket.ssl.connection_check;
+
+import org.jboss.test.remoting.transport.bisocket.ssl.SSLBisocketInvokerConstants;
+import org.jboss.test.remoting.transport.socket.ssl.connection_check.InvokerClientTest;
+
+/**
+ * This is the actual concrete test for the invoker client. Uses socket transport by default.
+ *
+ * @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 SSLBisocketInvokerClientTest
+ extends InvokerClientTest implements SSLBisocketInvokerConstants
+{
+
+ protected String getTransport()
+ {
+ return "sslbisocket";
+ }
+
+ protected int getPort()
+ {
+ return bisocketPort;
+ }
+
+}
1.2 +38 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/connection_check/SSLBisocketInvokerServerTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLBisocketInvokerServerTest.java
===================================================================
RCS file: SSLBisocketInvokerServerTest.java
diff -N SSLBisocketInvokerServerTest.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLBisocketInvokerServerTest.java 27 Dec 2006 06:14:53 -0000 1.2
@@ -0,0 +1,38 @@
+package org.jboss.test.remoting.transport.bisocket.ssl.connection_check;
+
+import org.jboss.test.remoting.transport.bisocket.ssl.SSLBisocketInvokerConstants;
+import org.jboss.test.remoting.transport.socket.ssl.connection_check.InvokerServerTest;
+
+/**
+ * This is the concrete test for invoker server.
+ *
+ * @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 SSLBisocketInvokerServerTest
+ extends InvokerServerTest implements SSLBisocketInvokerConstants
+{
+
+ public static void main(String[] args)
+ {
+ SSLBisocketInvokerServerTest server = new SSLBisocketInvokerServerTest();
+ try
+ {
+ server.setUp();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ protected String getTransport()
+ {
+ return "sslbisocket";
+ }
+
+ protected int getPort()
+ {
+ return bisocketPort;
+ }
+}
1.2 +58 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/connection_check/SSLBisocketInvokerTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLBisocketInvokerTestCase.java
===================================================================
RCS file: SSLBisocketInvokerTestCase.java
diff -N SSLBisocketInvokerTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLBisocketInvokerTestCase.java 27 Dec 2006 06:14:53 -0000 1.2
@@ -0,0 +1,58 @@
+package org.jboss.test.remoting.transport.bisocket.ssl.connection_check;
+
+import org.apache.log4j.Level;
+import org.jboss.jrunit.harness.TestDriver;
+
+/**
+ * @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 SSLBisocketInvokerTestCase extends TestDriver
+{
+ public void declareTestClasses()
+ {
+ addTestClasses(SSLBisocketInvokerClientTest.class.getName(),
+ 1,
+ SSLBisocketInvokerServerTest.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;
+ }
+
+}
More information about the jboss-cvs-commits
mailing list