ctf.evaluation.simulator.handshaking
Class Start

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

public class Start
extends TestCase

Tests the 'Start' state of a simulator's state machine


Constructor Summary
Start()
           
 
Method Summary
 void setUp()
          Set up for a test
 void tearDown()
          Tear down after a test
 void testMisspelledStartString()
          A team misspells the initialisation string.
 void testMisspelledTeamName()
          A team misspells its name.
 void testNormalStart()
          Normal start sequence.
 void testSendingFubar()
          A team sends a completely invalid string.
 void testWrongYear()
          A team uses the wrong year.
 
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

Start

public Start()
Method Detail

setUp

public void setUp()
           throws java.io.IOException,
                  NetworkException,
                  ProtocolError
Set up for a test

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

testNormalStart

public void testNormalStart()
                     throws java.io.IOException,
                            NetworkException
Normal start sequence.

Throws:
java.io.IOException
NetworkException

testSendingFubar

public void testSendingFubar()
                      throws java.io.IOException,
                             NetworkException,
                             ProtocolError
A team sends a completely invalid string.

Throws:
java.io.IOException
NetworkException
ProtocolError

testMisspelledStartString

public void testMisspelledStartString()
                               throws java.io.IOException,
                                      NetworkException,
                                      ProtocolError
A team misspells the initialisation string.

Throws:
java.io.IOException
NetworkException
ProtocolError

testMisspelledTeamName

public void testMisspelledTeamName()
                            throws java.io.IOException,
                                   NetworkException,
                                   ProtocolError
A team misspells its name.

Throws:
java.io.IOException
NetworkException
ProtocolError

testWrongYear

public void testWrongYear()
                   throws java.io.IOException,
                          NetworkException,
                          ProtocolError
A team uses the wrong year.

Throws:
java.io.IOException
NetworkException
ProtocolError