EchoOptionHandlerTestpublic class EchoOptionHandlerTest extends TelnetOptionHandlerTestAbstract JUnit test class for EchoOptionHandler
|
Methods Summary |
---|
public static void | main(java.lang.String[] args)main for running the test.
junit.textui.TestRunner.run(EchoOptionHandlerTest.class);
| protected void | setUp()setUp for the test.
opthand1 = new EchoOptionHandler();
opthand2 = new EchoOptionHandler(true, true, true, true);
opthand3 = new EchoOptionHandler(false, false, false, false);
| public void | testAnswerSubnegotiation()test of server-driven subnegotiation.
Checks that no subnegotiation is made.
int subn[] =
{
TelnetCommand.IAC, TelnetCommand.SB, TelnetOption.ECHO,
1, TelnetCommand.IAC, TelnetCommand.SE,
};
int resp1[] = opthand1.answerSubnegotiation(subn, subn.length);
assertEquals(resp1, null);
| public void | testConstructors()test of the constructors.
assertEquals(opthand1.getOptionCode(), TelnetOption.ECHO);
super.testConstructors();
| public void | testStartSubnegotiation()test of client-driven subnegotiation.
Checks that no subnegotiation is made.
int resp1[] = opthand1.startSubnegotiationLocal();
int resp2[] = opthand1.startSubnegotiationRemote();
assertEquals(resp1, null);
assertEquals(resp2, null);
|
|