Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 package org.apache.commons.net.telnet; 17 18 import junit.framework.TestCase; 19 20 29 public abstract class TelnetOptionHandlerTestAbstract extends TestCase 30 { 31 TelnetOptionHandler opthand1; 32 TelnetOptionHandler opthand2; 33 TelnetOptionHandler opthand3; 34 35 43 protected abstract void setUp(); 44 45 49 public void testConstructors() 50 { 51 assertTrue(!opthand1.getInitLocal()); 53 assertTrue(!opthand1.getInitRemote()); 54 assertTrue(!opthand1.getAcceptLocal()); 55 assertTrue(!opthand1.getAcceptRemote()); 56 57 assertTrue(opthand2.getInitLocal()); 58 assertTrue(opthand2.getInitRemote()); 59 assertTrue(opthand2.getAcceptLocal()); 60 assertTrue(opthand2.getAcceptRemote()); 61 62 assertTrue(!opthand3.getInitLocal()); 63 assertTrue(!opthand3.getInitRemote()); 64 assertTrue(!opthand3.getAcceptLocal()); 65 assertTrue(!opthand3.getAcceptRemote()); 66 } 67 68 71 public void testWill() 72 { 73 opthand2.setWill(true); 74 opthand3.setWill(false); 75 76 assertTrue(!opthand1.getWill()); 77 assertTrue(opthand2.getWill()); 78 assertTrue(!opthand3.getWill()); 79 } 80 81 84 public void testDo() 85 { 86 opthand2.setDo(true); 87 opthand3.setDo(false); 88 89 assertTrue(!opthand1.getDo()); 90 assertTrue(opthand2.getDo()); 91 assertTrue(!opthand3.getDo()); 92 } 93 94 98 public abstract void testStartSubnegotiation(); 99 100 104 public abstract void testAnswerSubnegotiation(); 105 }
| Popular Tags
|