1
package org.jboss.test.remoting.versioning.transport;
3
import org.apache.log4j.Level;
4
import org.jboss.test.remoting.transport.InvokerTestDriver;
7
* @author <a href="mailto:tom.elrod@jboss.com">Tom Elrod</a>
9
public abstract class VersionInvokerTestCaseBase extends InvokerTestDriver
12
* Returns the classpath to be added to the classpath used to start the client tests.
13
* Default return is null, which means no extra classpath will be added.
17
protected String getExtendedServerClasspath()
19
return System.getProperty("server.path");
23
* Returns the classpath to be added to the classpath used to start the client tests.
24
* Default return is null, which means no extra classpath will be added.
28
protected String getExtendedClientClasspath()
30
return System.getProperty("client.path");
33
protected String getClientJVMArguments()
35
String prop = System.getProperty("client.pre_2_0_compatible");
37
if (prop != null && !"".equals(prop))
39
args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
43
prop = System.getProperty("client.version");
44
if (prop != null && !"".equals(prop))
45
args = "-Djboss.remoting.version=" + prop;
47
prop = System.getProperty("client.check_connection");
48
if (prop != null && !"".equals(prop))
50
args += " -Dremoting.metadata=socket.check_connection=" + prop;
52
System.out.println("client arg: " + args);
57
protected String getServerJVMArguments()
59
String prop = System.getProperty("server.pre_2_0_compatible");
61
if (prop != null && !"".equals(prop))
63
args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
67
prop = System.getProperty("server.version");
68
if (prop != null && !"".equals(prop))
69
args = "-Djboss.remoting.version=" + prop;
71
prop = System.getProperty("server.check_connection");
72
if (prop != null && !"".equals(prop))
74
args += " -Dremoting.metadata=socket.check_connection=" + prop;
76
System.out.println("server arg: " + args);
81
protected Level getTestHarnessLogLevel()
86
protected Level getTestLogLevel()
92
* How long to wait for test results to be returned from the client(s). If goes longer than the
93
* specified limit, will throw an exception and kill the running test cases. Default value is
98
protected long getResultsTimeout()
104
* How long for the server test case to wait for tear down message. If exceeds timeout,
105
* will throw exception. The default value is TEARDOWN_TIMEOUT.
109
protected long getTearDownTimeout()
115
* How long to allow each of the test cases to run their tests. If exceeds this timeout
116
* will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
120
protected long getRunTestTimeout()