~ubuntu-branches/ubuntu/wily/libjboss-remoting-java/wily

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/callback/pull/memory/blocking/BlockingStoreCallbackTestCase.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110909140103-hqokx61534tas9rg
Tags: 2.5.3.SP1-1
* Newer but not newest upstream release. Do not build samples.
* Change debian/watch to upstream's svn repo.
* Add patch to fix compile error caused by tomcat update.
  (Closes: #628303)
* Switch to source format 3.0.
* Switch to debhelper level 7.
* Remove useless Depends.
* Update Standards-Version: 3.9.2.
* Update README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jboss.test.remoting.callback.pull.memory.blocking;
 
2
 
 
3
import org.apache.log4j.Level;
 
4
import org.jboss.jrunit.harness.TestDriver;
 
5
 
 
6
/**
 
7
 * This should be used as the main test case for the invoker client/server.
 
8
 * It will start one instance of the client and one of the server and will
 
9
 * gather the test results and report them in standard JUnit format.  When
 
10
 * wanting to run JUnit test for invoker, this is the class to use.
 
11
 *
 
12
 * @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
 
13
 */
 
14
public class BlockingStoreCallbackTestCase extends TestDriver
 
15
{
 
16
   public void declareTestClasses()
 
17
   {
 
18
      addTestClasses(CallbackTestClient.class.getName(),
 
19
                     1,
 
20
                     CallbackTestServer.class.getName());
 
21
   }
 
22
 
 
23
   /**
 
24
    * How long to wait for test results to be returned from the client(s).  If goes longer than the
 
25
    * specified limit, will throw an exception and kill the running test cases.  Default value is
 
26
    * RESULTS_TIMEOUT.
 
27
    *
 
28
    * @return
 
29
    */
 
30
   protected long getResultsTimeout()
 
31
   {
 
32
      return 600000;
 
33
   }
 
34
 
 
35
   /**
 
36
    * How long for the server test case to wait for tear down message.  If exceeds timeout,
 
37
    * will throw exception.  The default value is TEARDOWN_TIMEOUT.
 
38
    *
 
39
    * @return
 
40
    */
 
41
   protected long getTearDownTimeout()
 
42
   {
 
43
      return 600000;
 
44
   }
 
45
 
 
46
   /**
 
47
    * How long to allow each of the test cases to run their tests.  If exceeds this timeout
 
48
    * will throw exception and kill tests.  The default value is RUN_TEST_TIMEOUT.
 
49
    *
 
50
    * @return
 
51
    */
 
52
   protected long getRunTestTimeout()
 
53
   {
 
54
      return 600000;
 
55
   }
 
56
 
 
57
}