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

« back to all changes in this revision

Viewing changes to tests/org/jboss/test/remoting/transport/socket/connection/SocketConnectionTestCase.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20110909140103-o8ucrolqt5g25k57
Tags: upstream-2.5.3.SP1
ImportĀ upstreamĀ versionĀ 2.5.3.SP1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.jboss.test.remoting.transport.socket.connection;
2
 
 
3
 
import org.apache.log4j.Level;
4
 
import org.jboss.test.remoting.transport.InvokerTestDriver;
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 SocketConnectionTestCase extends InvokerTestDriver
15
 
{
16
 
   public void declareTestClasses()
17
 
   {
18
 
      addTestClasses(SocketTestClient.class.getName(),
19
 
                     1,
20
 
                     SocketTestServer.class.getName());
21
 
   }
22
 
 
23
 
   protected Level getTestLogLevel()
24
 
   {
25
 
      return Level.DEBUG;
26
 
   }
27
 
 
28
 
   /**
29
 
    * How long to wait for test results to be returned from the client(s).  If goes longer than the
30
 
    * specified limit, will throw an exception and kill the running test cases.  Default value is
31
 
    * RESULTS_TIMEOUT.
32
 
    *
33
 
    * @return
34
 
    */
35
 
   protected long getResultsTimeout()
36
 
   {
37
 
      return 600000;
38
 
   }
39
 
 
40
 
   /**
41
 
    * How long for the server test case to wait for tear down message.  If exceeds timeout,
42
 
    * will throw exception.  The default value is TEARDOWN_TIMEOUT.
43
 
    *
44
 
    * @return
45
 
    */
46
 
   protected long getTearDownTimeout()
47
 
   {
48
 
      return 600000;
49
 
   }
50
 
 
51
 
   /**
52
 
    * How long to allow each of the test cases to run their tests.  If exceeds this timeout
53
 
    * will throw exception and kill tests.  The default value is RUN_TEST_TIMEOUT.
54
 
    *
55
 
    * @return
56
 
    */
57
 
   protected long getRunTestTimeout()
58
 
   {
59
 
      return 600000;
60
 
   }
61
 
 
62
 
}