ctf.evaluation.simulator.handshaking
Class Version

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ctf.evaluation.TestCase
              extended by ctf.evaluation.simulator.handshaking.Version
All Implemented Interfaces:
junit.framework.Test

public class Version
extends TestCase

Tests the 'Version' state


Constructor Summary
Version()
           
 
Method Summary
 void setUp()
          Get into the Version state
 void tearDown()
          Tear down after a test
 void testGarbageString()
          A controller sends a garbage string
 void testNormalVersion()
          Normal Version sequence
 void testStartCommandInVersionState()
          A controller sends a Start command in the Version state
 void testWrongSTEALVersion()
          A controller requests an unsupported STEAL version
 
Methods inherited from class ctf.evaluation.TestCase
assertClose, assertClose, assertClose, assertClose, assertClose, assertClose, assertClose, assertCloseAbsolute, sleep
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version()
Method Detail

setUp

public void setUp()
           throws java.io.IOException,
                  NetworkException,
                  ProtocolError
Get into the Version state

Overrides:
setUp in class TestCase
Throws:
java.io.IOException
NetworkException
ProtocolError

tearDown

public void tearDown()
Tear down after a test

Overrides:
tearDown in class TestCase

testNormalVersion

public void testNormalVersion()
                       throws java.io.IOException,
                              NetworkException,
                              ProtocolError
Normal Version sequence

Throws:
java.io.IOException
NetworkException
ProtocolError

testGarbageString

public void testGarbageString()
                       throws java.io.IOException,
                              NetworkException,
                              ProtocolError
A controller sends a garbage string

Throws:
java.io.IOException
NetworkException
ProtocolError

testWrongSTEALVersion

public void testWrongSTEALVersion()
                           throws java.io.IOException,
                                  NetworkException,
                                  ProtocolError
A controller requests an unsupported STEAL version

Throws:
java.io.IOException
NetworkException
ProtocolError

testStartCommandInVersionState

public void testStartCommandInVersionState()
                                    throws java.io.IOException,
                                           NetworkException,
                                           ProtocolError
A controller sends a Start command in the Version state

Throws:
java.io.IOException
NetworkException
ProtocolError