KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > AbstractInvokerTest


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.remoting;
8
9 import org.jboss.dtf.DistributedTestCase;
10
11 /**
12  * Used as base for the client and server invoker test since they
13  * share many of the same behaviors.
14  *
15  * @author <a HREF="mailto:telrod@e2technologies.net">Tom Elrod</a>
16  */

17 public abstract class AbstractInvokerTest extends DistributedTestCase
18 {
19    protected int port = 8081;
20    protected String JavaDoc transport = "socket";
21
22    public AbstractInvokerTest(String JavaDoc name)
23    {
24       super(name);
25    }
26
27    public AbstractInvokerTest(String JavaDoc name, int numberOfInstances)
28    {
29       super(name);
30       init(numberOfInstances);
31    }
32
33    public AbstractInvokerTest(String JavaDoc name, String JavaDoc transport, int port)
34    {
35       super(name);
36       this.transport = transport;
37       this.port = port;
38    }
39
40    public AbstractInvokerTest(String JavaDoc name, String JavaDoc transport, int port, int numberOfInstances)
41    {
42       super(name);
43       this.transport = transport;
44       this.port = port;
45       init(numberOfInstances);
46    }
47
48    public String JavaDoc getTransport()
49    {
50       return transport;
51    }
52
53    public int getPort()
54    {
55       return port;
56    }
57 }
58
Popular Tags