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

« back to all changes in this revision

Viewing changes to tests/org/jboss/test/remoting/configuration/client/remote/ClientPingCountTestServer.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.configuration.client.remote;
8
 
 
9
 
import org.jboss.jrunit.extensions.ServerTestCase;
10
 
import org.jboss.remoting.transport.Connector;
11
 
 
12
 
/**
13
 
 * @author <a href="mailto:ovidiu@jboss.org">Ovidiu Feodorov</a>
14
 
 * @version <tt>$Revision: 1941 $</tt>
15
 
 * $Id: ClientPingCountTestServer.java 1941 2007-01-21 01:24:52Z ovidiu $
16
 
 */
17
 
public class ClientPingCountTestServer extends ServerTestCase
18
 
{
19
 
   // Constants ------------------------------------------------------------------------------------
20
 
 
21
 
   public static String locatorURI = "socket://localhost:9999";
22
 
 
23
 
   // Static ---------------------------------------------------------------------------------------
24
 
 
25
 
   // Attributes -----------------------------------------------------------------------------------
26
 
 
27
 
   private Connector connector;
28
 
 
29
 
   // Constructors ---------------------------------------------------------------------------------
30
 
 
31
 
   // Public ---------------------------------------------------------------------------------------
32
 
 
33
 
   // Package protected ----------------------------------------------------------------------------
34
 
 
35
 
   // Protected ------------------------------------------------------------------------------------
36
 
 
37
 
   protected void setUp() throws Exception
38
 
   {
39
 
      connector = new Connector(locatorURI);
40
 
      connector.create();
41
 
      connector.start();
42
 
 
43
 
      super.setUp();
44
 
   }
45
 
 
46
 
   protected void tearDown() throws Exception
47
 
   {
48
 
      if(connector != null)
49
 
      {
50
 
         connector.stop();
51
 
         connector.destroy();
52
 
      }
53
 
 
54
 
      super.tearDown();
55
 
   }
56
 
 
57
 
   // Private --------------------------------------------------------------------------------------
58
 
 
59
 
   // Inner classes --------------------------------------------------------------------------------
60
 
}