1
package org.jboss.test.remoting.versioning.lease;
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 class LeaseVersionTestCase extends InvokerTestDriver
11
public void declareTestClasses()
13
addTestClasses("org.jboss.test.remoting.versioning.lease.LeaseVersionTestClient",
15
"org.jboss.test.remoting.versioning.lease.LeaseVersionTestServer");
19
* Returns the classpath to be added to the classpath used to start the client tests.
20
* Default return is null, which means no extra classpath will be added.
24
protected String getExtendedServerClasspath()
26
return System.getProperty("server.path");
30
* Returns the classpath to be added to the classpath used to start the client tests.
31
* Default return is null, which means no extra classpath will be added.
35
protected String getExtendedClientClasspath()
37
return System.getProperty("client.path");
40
protected String getClientJVMArguments()
42
String prop = System.getProperty("client.pre_2_0_compatible");
44
if (prop != null && !"".equals(prop))
46
args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
50
prop = System.getProperty("client.version");
51
if (prop != null && !"".equals(prop))
52
args = "-Djboss.remoting.version=" + prop;
54
prop = System.getProperty("client.check_connection");
55
if (prop != null && !"".equals(prop))
57
args += " -Dremoting.metadata=socket.check_connection=" + prop;
59
System.out.println("client arg: " + args);
64
protected String getServerJVMArguments()
66
String prop = System.getProperty("server.pre_2_0_compatible");
68
if (prop != null && !"".equals(prop))
70
args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
74
prop = System.getProperty("server.version");
75
if (prop != null && !"".equals(prop))
76
args = "-Djboss.remoting.version=" + prop;
78
prop = System.getProperty("server.check_connection");
79
if (prop != null && !"".equals(prop))
81
args += " -Dremoting.metadata=socket.check_connection=" + prop;
83
System.out.println("server arg: " + args);
88
protected Level getTestHarnessLogLevel()
93
protected Level getTestLogLevel()
99
* How long to wait for test results to be returned from the client(s). If goes longer than the
100
* specified limit, will throw an exception and kill the running test cases. Default value is
105
protected long getResultsTimeout()
111
* How long for the server test case to wait for tear down message. If exceeds timeout,
112
* will throw exception. The default value is TEARDOWN_TIMEOUT.
116
protected long getTearDownTimeout()
122
* How long to allow each of the test cases to run their tests. If exceeds this timeout
123
* will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
127
protected long getRunTestTimeout()