All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----simu.test.TestSCPCommunicator
The TestSCPCommunicator class is a test harness for the SCPCommunicator class. Testing of both sending and receiving capabilities of the SCPCommunicator is done.
public TestSCPCommunicator()
public static void main(String args[])
Susequent tests exercise the send constructor for the SCPCommunicator class. Data is sent, and any replies are returned in the local Hashtable. After the last test is executed, the contents of the local Hashtable are printed to the standard output to verify its contents.
Preconditions: A communicator thread, which adheres to the Communicator class protocol, is listening on port 1102. Note that this test harness was designed to run in conjunction with the TestCommunicator class test harness, which exercises the Communicator class. In general, however, any communicator thread that adheres to the Communicator class protocol would be sufficient.
Postconditions: The operation of the SCPCommunicator class is verified.
All Packages Class Hierarchy This Package Previous Next Index