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

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/transporter/proxy/local/Server.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
 *                                     *
 
3
 *  JBoss: The OpenSource J2EE WebOS   *
 
4
 *                                     *
 
5
 *  Distributable under LGPL license.  *
 
6
 *  See terms of license at gnu.org.   *
 
7
 *                                     *
 
8
 ***************************************/
 
9
package org.jboss.test.remoting.transporter.proxy.local;
 
10
 
 
11
import org.jboss.jrunit.extensions.ServerTestCase;
 
12
import org.jboss.remoting.transporter.TransporterServer;
 
13
 
 
14
/**
 
15
 * @author <a href="mailto:tom@jboss.org">Tom Elrod</a>
 
16
 */
 
17
public class Server extends ServerTestCase
 
18
{
 
19
   private TransporterServer server;
 
20
 
 
21
   public void setUp() throws Exception
 
22
   {
 
23
      server = TransporterServer.createTransporterServer("socket://localhost:5401", new DateConsumerImpl(), DateConsumer.class.getName());
 
24
   }
 
25
 
 
26
   public void tearDown()
 
27
   {
 
28
      if (server != null)
 
29
      {
 
30
         server.stop();
 
31
      }
 
32
   }
 
33
 
 
34
   public static void main(String[] args)
 
35
   {
 
36
      Server svr = new Server();
 
37
      try
 
38
      {
 
39
         svr.setUp();
 
40
         Thread.currentThread().sleep(6000000);
 
41
         svr.tearDown();
 
42
      }
 
43
      catch (Exception e)
 
44
      {
 
45
         e.printStackTrace();
 
46
      }
 
47
   }
 
48
}
 
 
b'\\ No newline at end of file'