ctf.evaluation.simulator.play
Class PlayerPositions

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

public class PlayerPositions
extends TestCase

Tests basic movement of players


Field Summary
protected  Connection blue
          Controller connections
protected  Connection red
          Controller connections
 
Constructor Summary
PlayerPositions()
           
 
Method Summary
 void setUp()
          Initialize the field with tree, flag and player locations.
 void tearDown()
           
 void testDefaultPlacement()
          Ensure that players are placed in default locations and orientations
 
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
 

Field Detail

red

protected Connection red
Controller connections


blue

protected Connection blue
Controller connections

Constructor Detail

PlayerPositions

public PlayerPositions()
Method Detail

setUp

public void setUp()
           throws java.io.IOException,
                  NetworkException,
                  ProtocolError
Initialize the field with tree, flag and player locations.

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

tearDown

public void tearDown()
Overrides:
tearDown in class TestCase

testDefaultPlacement

public void testDefaultPlacement()
                          throws java.io.IOException,
                                 NetworkException,
                                 ProtocolError,
                                 RoundOverException,
                                 GameOverException
Ensure that players are placed in default locations and orientations

Throws:
java.io.IOException
NetworkException
ProtocolError
RoundOverException
GameOverException