KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > callback > pull > memory > nullstore > NullStoreCallbackTestCase


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.remoting.callback.pull.memory.nullstore;
8
9 import org.apache.log4j.Level;
10 import org.jboss.jrunit.harness.TestDriver;
11
12 /**
13  * This should be used as the main test case for the invoker client/server.
14  * It will start one instance of the client and one of the server and will
15  * gather the test results and report them in standard JUnit format. When
16  * wanting to run JUnit test for invoker, this is the class to use.
17  *
18  * @author <a HREF="mailto:telrod@e2technologies.net">Tom Elrod</a>
19  */

20 public class NullStoreCallbackTestCase extends TestDriver
21 {
22    public void declareTestClasses()
23    {
24       addTestClasses(CallbackTestClient.class.getName(),
25                      1,
26                      CallbackTestServer.class.getName());
27    }
28
29    protected Level getTestHarnessLogLevel()
30    {
31       return Level.DEBUG;
32    }
33
34    /**
35     * How long to wait for test results to be returned from the client(s). If goes longer than the
36     * specified limit, will throw an exception and kill the running test cases. Default value is
37     * RESULTS_TIMEOUT.
38     *
39     * @return
40     */

41    protected long getResultsTimeout()
42    {
43       return 300000;
44    }
45
46    /**
47     * How long for the server test case to wait for tear down message. If exceeds timeout,
48     * will throw exception. The default value is TEARDOWN_TIMEOUT.
49     *
50     * @return
51     */

52    protected long getTearDownTimeout()
53    {
54       return 300000;
55    }
56
57    /**
58     * How long to allow each of the test cases to run their tests. If exceeds this timeout
59     * will throw exception and kill tests. The default value is RUN_TEST_TIMEOUT.
60     *
61     * @return
62     */

63    protected long getRunTestTimeout()
64    {
65       return 300000;
66    }
67
68 }
Popular Tags