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

« back to all changes in this revision

Viewing changes to tests/org/jboss/test/remoting/versioning/lease/LeaseVersionTestCase.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.versioning.lease;
2
 
 
3
 
import org.apache.log4j.Level;
4
 
import org.jboss.test.remoting.transport.InvokerTestDriver;
5
 
 
6
 
/**
7
 
 * @author <a href="mailto:tom.elrod@jboss.com">Tom Elrod</a>
8
 
 */
9
 
public class LeaseVersionTestCase extends InvokerTestDriver
10
 
{
11
 
   public void declareTestClasses()
12
 
   {
13
 
      addTestClasses("org.jboss.test.remoting.versioning.lease.LeaseVersionTestClient",
14
 
                     1,
15
 
                     "org.jboss.test.remoting.versioning.lease.LeaseVersionTestServer");
16
 
   }
17
 
   
18
 
   /**
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.
21
 
    *
22
 
    * @return
23
 
    */
24
 
   protected String getExtendedServerClasspath()
25
 
   {
26
 
      return System.getProperty("server.path");
27
 
   }
28
 
 
29
 
   /**
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.
32
 
    *
33
 
    * @return
34
 
    */
35
 
   protected String getExtendedClientClasspath()
36
 
   {
37
 
      return System.getProperty("client.path");
38
 
   }
39
 
   
40
 
   protected String getClientJVMArguments()
41
 
   {
42
 
      String prop = System.getProperty("client.pre_2_0_compatible");
43
 
      String args = "";
44
 
      if (prop != null && !"".equals(prop))
45
 
      {
46
 
         args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
47
 
      }
48
 
      else
49
 
      {
50
 
         prop = System.getProperty("client.version");
51
 
         if (prop != null && !"".equals(prop))
52
 
            args = "-Djboss.remoting.version=" + prop;
53
 
      }
54
 
      prop = System.getProperty("client.check_connection");
55
 
      if (prop != null && !"".equals(prop))
56
 
      {
57
 
         args += " -Dremoting.metadata=socket.check_connection=" + prop;
58
 
      }
59
 
      System.out.println("client arg: " + args);
60
 
      return args;
61
 
   }
62
 
 
63
 
 
64
 
   protected String getServerJVMArguments()
65
 
   {
66
 
      String prop = System.getProperty("server.pre_2_0_compatible");
67
 
      String args = "";
68
 
      if (prop != null && !"".equals(prop))
69
 
      {
70
 
         args = "-Djboss.remoting.pre_2_0_compatible=" + prop;
71
 
      }
72
 
      else
73
 
      {
74
 
         prop = System.getProperty("server.version");
75
 
         if (prop != null && !"".equals(prop))
76
 
            args = "-Djboss.remoting.version=" + prop;
77
 
      }
78
 
      prop = System.getProperty("server.check_connection");
79
 
      if (prop != null && !"".equals(prop))
80
 
      {
81
 
         args += " -Dremoting.metadata=socket.check_connection=" + prop;
82
 
      }
83
 
      System.out.println("server arg: " + args);
84
 
      return args;
85
 
   }
86
 
   
87
 
 
88
 
   protected Level getTestHarnessLogLevel()
89
 
   {
90
 
      return Level.INFO;
91
 
   }
92
 
 
93
 
   protected Level getTestLogLevel()
94
 
   {
95
 
      return Level.INFO;
96
 
   }
97
 
 
98
 
   /**
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
101
 
    * RESULTS_TIMEOUT.
102
 
    *
103
 
    * @return
104
 
    */
105
 
   protected long getResultsTimeout()
106
 
   {
107
 
      return 60000;
108
 
   }
109
 
 
110
 
   /**
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.
113
 
    *
114
 
    * @return
115
 
    */
116
 
   protected long getTearDownTimeout()
117
 
   {
118
 
      return 60000;
119
 
   }
120
 
 
121
 
   /**
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.
124
 
    *
125
 
    * @return
126
 
    */
127
 
   protected long getRunTestTimeout()
128
 
   {
129
 
      return 60000;
130
 
   }
131
 
 
132
 
 
133
 
}