org.sourceforge.jemm.comm
Class AsyncClientServerEchoTest

java.lang.Object
  extended by org.sourceforge.jemm.comm.AsyncClientServerEchoTest

public class AsyncClientServerEchoTest
extends java.lang.Object

Basic integration test of asynchronous comms code using the echo example. This test sends NO_MESSAGES asynchronous messages to the echo server and awaits the same number of replies.

Author:
Rory Graves

Field Summary
static int NO_MESSAGES
          The number of messages to send.
static java.lang.String SERVER_HOSTNAME
          Target host address.
static int SERVER_PORT
          Target server port.
 
Constructor Summary
AsyncClientServerEchoTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          main method runs a simple test of the echo server.
 void runTest()
          Run a test of the asynchronous calling using the asynchronous echo calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_HOSTNAME

public static final java.lang.String SERVER_HOSTNAME
Target host address.

See Also:
Constant Field Values

SERVER_PORT

public static final int SERVER_PORT
Target server port.

See Also:
Constant Field Values

NO_MESSAGES

public static final int NO_MESSAGES
The number of messages to send.

See Also:
Constant Field Values
Constructor Detail

AsyncClientServerEchoTest

public AsyncClientServerEchoTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
main method runs a simple test of the echo server.

Parameters:
args - Command line arguments.
Throws:
java.lang.Exception - On error.

runTest

public void runTest()
             throws java.lang.Exception
Run a test of the asynchronous calling using the asynchronous echo calls.

Throws:
java.lang.Exception - On error.


Copyright © 2009. All Rights Reserved.