main for running the test. junit.textui.TestRunner.run(InvalidTelnetOptionExceptionTest.class);
junit.textui.TestRunner.run(InvalidTelnetOptionExceptionTest.class);
setUp for the test. msg1 = new String("MSG"); code1 = 13; exc1 = new InvalidTelnetOptionException(msg1, code1);
msg1 = new String("MSG"); code1 = 13; exc1 = new InvalidTelnetOptionException(msg1, code1);
test of the constructors. assertTrue(exc1.getMessage().indexOf(msg1) >= 0); assertTrue(exc1.getMessage().indexOf("" +code1) >= 0);
assertTrue(exc1.getMessage().indexOf(msg1) >= 0); assertTrue(exc1.getMessage().indexOf("" +code1) >= 0);