| org.apache.commons.net.telnet.TelnetClientTest
TelnetClientTest | public class TelnetClientTest extends TestCase implements TelnetNotificationHandler(Code) | | JUnit test class for TelnetClient.s
Implements protocol compliance tests
author: Bruno D'Avanzo |
numdo | protected int numdo(Code) | | |
numdont | protected int numdont(Code) | | |
numwill | protected int numwill(Code) | | |
numwont | protected int numwont(Code) | | |
equalBytes | protected boolean equalBytes(byte a1, byte a2)(Code) | | Helper method. compares two arrays of int
|
main | public static void main(String args)(Code) | | main for running the test.
|
receivedNegotiation | public void receivedNegotiation(int negotiation_code, int option_code)(Code) | | Callback method called when TelnetClient receives an option
negotiation command.
Parameters: negotiation_code - - type of negotiation command received(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT) Parameters: option_code - - code of the option negotiated
|
setUp | protected void setUp() throws Exception(Code) | | open connections needed for the tests for the test.
|
testAYT | public void testAYT() throws Exception(Code) | | test of AYT functionality
|
testDeleteOptionHandler | public void testDeleteOptionHandler() throws Exception(Code) | | protocol compliance test in case of option handler removal
|
testInitial | public void testInitial() throws Exception(Code) | | tests the initial condition of the sessions
|
testNotification | public void testNotification() throws Exception(Code) | | test of option negotiation notification
|
testOptionNegotiation | public void testOptionNegotiation() throws Exception(Code) | | protocol compliance test for option negotiation
|
testOptionRenegotiation | public void testOptionRenegotiation() throws Exception(Code) | | protocol compliance test for option renegotiation
|
testSetReaderThread | public void testSetReaderThread() throws Exception(Code) | | test of setReaderThread
|
testSpy | public void testSpy() throws Exception(Code) | | test of Spy functionality
|
|
|