org.apache.commons.net.telnet
Class TerminalTypeOptionHandlerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.net.telnet.TelnetOptionHandlerTestAbstract
              extended by org.apache.commons.net.telnet.TerminalTypeOptionHandlerTest
All Implemented Interfaces:
junit.framework.Test

public class TerminalTypeOptionHandlerTest
extends TelnetOptionHandlerTestAbstract

JUnit test class for TerminalTypeOptionHandler

Author:
Bruno D'Avanzo

Constructor Summary
TerminalTypeOptionHandlerTest()
           
 
Method Summary
protected  boolean equalInts(int[] a1, int[] a2)
          compares two arrays of int
static void main(String[] args)
          main for running the test.
protected  void setUp()
          setUp for the test.
 void testAnswerSubnegotiation()
          test of client-driven subnegotiation.
 void testConstructors()
          test of the constructors.
 void testStartSubnegotiation()
          test of client-driven subnegotiation.
 
Methods inherited from class org.apache.commons.net.telnet.TelnetOptionHandlerTestAbstract
testDo, testWill
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerminalTypeOptionHandlerTest

public TerminalTypeOptionHandlerTest()
Method Detail

main

public static void main(String[] args)
main for running the test.


setUp

protected void setUp()
setUp for the test.

Specified by:
setUp in class TelnetOptionHandlerTestAbstract

testConstructors

public void testConstructors()
test of the constructors.

Overrides:
testConstructors in class TelnetOptionHandlerTestAbstract

testStartSubnegotiation

public void testStartSubnegotiation()
test of client-driven subnegotiation. Checks that no subnegotiation is made.

Specified by:
testStartSubnegotiation in class TelnetOptionHandlerTestAbstract

testAnswerSubnegotiation

public void testAnswerSubnegotiation()
test of client-driven subnegotiation. Checks that the terminal type is sent

Specified by:
testAnswerSubnegotiation in class TelnetOptionHandlerTestAbstract

equalInts

protected boolean equalInts(int[] a1,
                            int[] a2)
compares two arrays of int



Copyright © 1997-2010 Apache Software Foundation. All Rights Reserved.