|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.net.telnet.TelnetClientTest
public class TelnetClientTest
JUnit test class for TelnetClient.s Implements protocol compliance tests
Field Summary | |
---|---|
protected int |
numdo
|
protected int |
numdont
|
protected int |
numwill
|
protected int |
numwont
|
Fields inherited from interface org.apache.commons.net.telnet.TelnetNotificationHandler |
---|
RECEIVED_COMMAND, RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT |
Constructor Summary | |
---|---|
TelnetClientTest()
|
Method Summary | |
---|---|
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 |
Methods inherited from class junit.framework.TestCase |
---|
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, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int numdo
protected int numdont
protected int numwill
protected int numwont
Constructor Detail |
---|
public TelnetClientTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testInitial() throws Exception
Exception
public void testOptionNegotiation() throws Exception
Exception
public void testOptionRenegotiation() throws Exception
Exception
public void testNotification() throws Exception
Exception
public void testDeleteOptionHandler() throws Exception
Exception
public void testAYT() throws Exception
Exception
public void testSpy() throws Exception
Exception
public void testSetReaderThread() throws Exception
Exception
protected boolean equalBytes(byte[] a1, byte[] a2)
public void receivedNegotiation(int negotiation_code, int option_code)
receivedNegotiation
in interface TelnetNotificationHandler
negotiation_code
- - type of negotiation command received
(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
option_code
- - code of the option negotiated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |