public class TelnetClientTest extends junit.framework.TestCase implements TelnetNotificationHandler
| Modifier and Type | Field and Description |
|---|---|
protected int |
numdo |
protected int |
numdont |
protected int |
numwill |
protected int |
numwont |
RECEIVED_COMMAND, RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT| Constructor and Description |
|---|
TelnetClientTest() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equalBytes(byte[] a1,
byte[] a2)
Helper method.
|
void |
receivedNegotiation(int negotiation_code,
int option_code)
Callback method called when TelnetClient receives an option
negotiation command.
|
protected void |
setUp()
open connections needed for the tests for the test.
|
protected void |
tearDown() |
void |
testAYT()
test of AYT functionality
|
void |
testDeleteOptionHandler()
protocol compliance test in case of option handler removal
|
void |
testInitial()
tests the initial condition of the sessions
|
void |
testNotification()
test of option negotiation notification
|
void |
testOptionNegotiation()
protocol compliance test for option negotiation
|
void |
testOptionRenegotiation()
protocol compliance test for option renegotiation
|
void |
testSetReaderThread()
test of setReaderThread
|
void |
testSpy()
test of Spy functionality
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringprotected int numdo
protected int numdont
protected int numwill
protected int numwont
public TelnetClientTest()
protected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown() throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void testInitial() throws Exception
Exceptionpublic void testOptionNegotiation() throws Exception
Exceptionpublic void testOptionRenegotiation() throws Exception
Exceptionpublic void testNotification() throws Exception
Exceptionpublic void testDeleteOptionHandler() throws Exception
Exceptionpublic void testSetReaderThread() throws Exception
Exceptionprotected boolean equalBytes(byte[] a1, byte[] a2)
public void receivedNegotiation(int negotiation_code, int option_code)
receivedNegotiation in interface TelnetNotificationHandlernegotiation_code - - type of negotiation command received
(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
option_code - - code of the option negotiated
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.