| org.apache.commons.net.telnet.TelnetOptionHandlerTestAbstract
All known Subclasses: org.apache.commons.net.telnet.TerminalTypeOptionHandlerTest, org.apache.commons.net.telnet.EchoOptionHandlerTest, org.apache.commons.net.telnet.SimpleOptionHandlerTest, org.apache.commons.net.telnet.SuppressGAOptionHandlerTest,
TelnetOptionHandlerTestAbstract | abstract public class TelnetOptionHandlerTestAbstract extends TestCase (Code) | | The TelnetOptionHandlerTest is the abstract class for
testing TelnetOptionHandler. It can be used to derive
the actual test classes for TelnetOptionHadler derived
classes, by adding creation of three new option handlers
and testing of the specific subnegotiation behaviour.
author: Bruno D'Avanzo |
setUp | abstract protected void setUp()(Code) | | setUp for the test. The derived test class must implement
this method by creating opthand1, opthand2, opthand3
like in the following:
opthand1 = new EchoOptionHandler();
opthand2 = new EchoOptionHandler(true, true, true, true);
opthand3 = new EchoOptionHandler(false, false, false, false);
|
testAnswerSubnegotiation | abstract public void testAnswerSubnegotiation()(Code) | | test of server-driven subnegotiation. Abstract test:
the derived class should implement it.
|
testConstructors | public void testConstructors()(Code) | | test of the constructors. The derived class may add
test of the option code.
|
testDo | public void testDo()(Code) | | test of setDo/getDo
|
testStartSubnegotiation | abstract public void testStartSubnegotiation()(Code) | | test of client-driven subnegotiation. Abstract test:
the derived class should implement it.
|
testWill | public void testWill()(Code) | | test of setWill/getWill
|
|
|