FileDocCategorySizeDatePackage
InvalidTelnetOptionExceptionTest.javaAPI DocApache Commons NET 1.4.1 API1560Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.telnet

InvalidTelnetOptionExceptionTest

public class InvalidTelnetOptionExceptionTest extends TestCase
JUnit test class for InvalidTelnetOptionException

author
Bruno D'Avanzo

Fields Summary
private InvalidTelnetOptionException
exc1
private String
msg1
private int
code1
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)
main for running the test.

        junit.textui.TestRunner.run(InvalidTelnetOptionExceptionTest.class);
    
protected voidsetUp()
setUp for the test.

        msg1 = new String("MSG");
        code1 = 13;
        exc1 = new InvalidTelnetOptionException(msg1, code1);
    
public voidtestConstructors()
test of the constructors.

        assertTrue(exc1.getMessage().indexOf(msg1) >= 0);
        assertTrue(exc1.getMessage().indexOf("" +code1) >= 0);