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

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/lease/socket/ClientLeasePeriodTestCase.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
/**
 
2
 * JBoss, Home of Professional Open Source
 
3
 *
 
4
 * Distributable under LGPL license.
 
5
 * See terms of license at gnu.org.
 
6
 */
 
7
package org.jboss.test.remoting.lease.socket;
 
8
 
 
9
import org.jboss.jrunit.harness.TestDriver;
 
10
 
 
11
/**
 
12
 * @author <a href="mailto:ovidiu@jboss.org">Ovidiu Feodorov</a>
 
13
 * @version <tt>$Revision: 1946 $</tt>
 
14
 * $Id: ClientLeasePeriodTestCase.java 1946 2007-01-21 08:38:33Z ovidiu $
 
15
 */
 
16
public class ClientLeasePeriodTestCase extends TestDriver
 
17
{
 
18
   // Constants ------------------------------------------------------------------------------------
 
19
 
 
20
   // Static ---------------------------------------------------------------------------------------
 
21
 
 
22
   // Attributes -----------------------------------------------------------------------------------
 
23
 
 
24
   // Constructors ---------------------------------------------------------------------------------
 
25
 
 
26
   // TestDriver overrides -------------------------------------------------------------------------
 
27
 
 
28
   public void declareTestClasses()
 
29
   {
 
30
      addTestClasses(ClientLeasePeriodTestClient.class.getName(), 1,
 
31
                     ClientLeasePeriodTestServer.class.getName());
 
32
   }
 
33
 
 
34
   // Public ---------------------------------------------------------------------------------------
 
35
 
 
36
   // Package protected ----------------------------------------------------------------------------
 
37
 
 
38
   // Protected ------------------------------------------------------------------------------------
 
39
 
 
40
   protected String getClientJVMArguments()
 
41
   {
 
42
      if (Boolean.getBoolean("clientdebug"))
 
43
      {
 
44
         return "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=n,suspend=n,address=jrunit_client";
 
45
      }
 
46
 
 
47
      return "";
 
48
   }
 
49
 
 
50
   protected long getResultsTimeout()
 
51
   {
 
52
      if (Boolean.getBoolean("clientdebug"))
 
53
      {
 
54
         return 3600000L;
 
55
      }
 
56
 
 
57
      return super.getResultsTimeout();
 
58
   }
 
59
 
 
60
   protected long getTearDownTimeout()
 
61
   {
 
62
      if (Boolean.getBoolean("clientdebug"))
 
63
      {
 
64
         return 3600000L;
 
65
      }
 
66
 
 
67
      return super.getTearDownTimeout();
 
68
   }
 
69
 
 
70
   protected long getRunTestTimeout()
 
71
   {
 
72
      if (Boolean.getBoolean("clientdebug"))
 
73
      {
 
74
         return 3600000L;
 
75
      }
 
76
 
 
77
      return super.getRunTestTimeout();
 
78
   }
 
79
 
 
80
   // Private --------------------------------------------------------------------------------------
 
81
 
 
82
   // Inner classes --------------------------------------------------------------------------------
 
83
}