1
package org.jboss.test.remoting.transport.http.chunked;
3
import org.jboss.test.remoting.transport.InvokerTestDriver;
4
import org.jboss.test.remoting.performance.synchronous.PerformanceTestCase;
7
* @author <a href="mailto:tom.elrod@jboss.com">Tom Elrod</a>
9
public class Chunked2TestCase extends InvokerTestDriver
11
public void declareTestClasses()
13
addTestClasses(ChunkedClient2.class.getName(),
15
ChunkedServer.class.getName());
18
* How long to wait for test results to be returned from the client(s). If goes longer than the
19
* specified limit, will throw an exception and kill the running test cases. Default value is
24
protected long getResultsTimeout()
26
long defaultTimeout = 600000; // default to 10 minutes
28
String timeout = System.getProperty(PerformanceTestCase.RESULT_TIMEOUT);
29
if(timeout != null && timeout.length() > 0)
33
defaultTimeout = Long.parseLong(timeout);
35
catch(NumberFormatException e)
37
System.out.println("Can not use " + timeout + " as timeout value as is not a number");
40
return defaultTimeout;
44
* How long for the server test case to wait for tear down message. If exceeds timeout,
45
* will throw exception. The default value is TEARDOWN_TIMEOUT.
49
protected long getTearDownTimeout()
51
long defaultTimeout = 600000; // default to 10 minutes
53
String timeout = System.getProperty(PerformanceTestCase.TEAR_DOWN_TIMEOUT);
54
if(timeout != null && timeout.length() > 0)
58
defaultTimeout = Long.parseLong(timeout);
60
catch(NumberFormatException e)
62
System.out.println("Can not use " + timeout + " as timeout value as is not a number");
65
return defaultTimeout;
69
* How long to allow each of the test cases to run their tests. If exceeds this timeout
70
* will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
74
protected long getRunTestTimeout()
76
long defaultTimeout = 600000; // default to 10 minutes
78
String timeout = System.getProperty(PerformanceTestCase.RUN_TEST_TIMEOUT);
79
if(timeout != null && timeout.length() > 0)
83
defaultTimeout = Long.parseLong(timeout);
85
catch(NumberFormatException e)
87
System.out.println("Can not use " + timeout + " as timeout value as is not a number");
90
return defaultTimeout;