com.resilientedge.jockey.peerbridge
Class ZSimpSockConnectorTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.resilientedge.jockey.peerbridge.ZSimpSockConnectorTest
All Implemented Interfaces:
SimpSockRequestListener, junit.framework.Test

public class ZSimpSockConnectorTest
extends junit.framework.TestCase
implements SimpSockRequestListener

Main entry point for the peerbridge subsystem.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
ZSimpSockConnectorTest()
          Constructor for the ZSimpSockConnectorTest object
ZSimpSockConnectorTest(java.lang.String name)
          Default constructor
 
Method Summary
 Response doCall(Request req)
          Handle a request
 void doVoidCall(Request req)
          Handle a request which won't receive a response.
 java.lang.String getRequesteeName()
          Return the name by which this listener can be identified.
static void main(java.lang.String[] args)
          Description of the Method
protected  void real_setUp()
          The JUnit setup method
protected  void real_tearDown()
          The teardown method for JUnit
protected  void setUp()
          The JUnit setup method
protected  void tearDown()
          The teardown method for JUnit
 void testDualClient()
          Tests a couple of clients connecting to the server.
 void testZZZ()
          Tests a single client connection to the server.
 void XtestMultiClient()
          Tests many clients connecting to the server.
 void XtestSingleClient()
          Tests a single client connection to the server.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZSimpSockConnectorTest

public ZSimpSockConnectorTest(java.lang.String name)
Default constructor
Parameters:
name - the name of the test case

ZSimpSockConnectorTest

public ZSimpSockConnectorTest()
Constructor for the ZSimpSockConnectorTest object
Method Detail

XtestSingleClient

public void XtestSingleClient()
                       throws java.lang.Exception
Tests a single client connection to the server.

testDualClient

public void testDualClient()
                    throws java.lang.Exception
Tests a couple of clients connecting to the server.

XtestMultiClient

public void XtestMultiClient()
Tests many clients connecting to the server.

testZZZ

public void testZZZ()
Tests a single client connection to the server.

getRequesteeName

public java.lang.String getRequesteeName()
Return the name by which this listener can be identified.
Specified by:
getRequesteeName in interface SimpSockRequestListener
Returns:
listener name

doCall

public Response doCall(Request req)
Handle a request
Specified by:
doCall in interface SimpSockRequestListener
Parameters:
req - the request to handle
Returns:
a response

doVoidCall

public void doVoidCall(Request req)
Handle a request which won't receive a response.
Specified by:
doVoidCall in interface SimpSockRequestListener
Parameters:
req - the request to handle

setUp

protected void setUp()
The JUnit setup method
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
The teardown method for JUnit
Overrides:
tearDown in class junit.framework.TestCase

real_setUp

protected void real_setUp()
The JUnit setup method

real_tearDown

protected void real_tearDown()
The teardown method for JUnit

main

public static void main(java.lang.String[] args)
Description of the Method
Parameters:
args - Description of Parameter


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.