|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
ctf.evaluation.TestCase
ctf.evaluation.simulator.setup.PlaceTrees
public class PlaceTrees
Tests the 'PlaceTrees' state
Constructor Summary | |
---|---|
PlaceTrees()
|
Method Summary | |
---|---|
protected void |
place(Connection connection,
double x,
double y)
Place a tree at a specific (x,y) location |
protected void |
place(Connection connection,
Point point)
Place a tree at a specific point |
protected void |
placeNormal(Connection connection,
Side side)
Place one side's trees in the standard locations |
void |
setUp()
Get into the PlaceTrees state |
void |
tearDown()
Tear down after a test |
void |
testBottomEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
testCentreLine()
Trees may not be placed within 1m of the centre line |
void |
testCentreToCentreDistance()
Trees may not be placed within 1m of the centre line |
void |
testJail()
A tree may not be placed with 1m of a jail |
void |
testLeftEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
testNormalPlacement()
Trees are placed in default locations |
void |
testPartialPlacement()
After some of a team's trees have been placed, the other team sends a getTrees query. |
void |
testRightEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
testTopEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
testTreePlayerDistance()
Trees may not be placed within 1.2m of a player's starting position |
void |
testTreesOnEnemySide()
A team may not place a tree on the opposing side of the field |
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 |
---|
public PlaceTrees()
Method Detail |
---|
public void setUp() throws java.io.IOException, NetworkException, ProtocolError
setUp
in class TestCase
java.io.IOException
NetworkException
ProtocolError
public void tearDown()
tearDown
in class TestCase
public void testNormalPlacement() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testPartialPlacement() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testLeftEdgeOfTheField() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testBottomEdgeOfTheField() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testTopEdgeOfTheField() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testRightEdgeOfTheField() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testCentreLine() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testCentreToCentreDistance() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testTreePlayerDistance() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testTreesOnEnemySide() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
public void testJail() throws java.io.IOException, NetworkException, ProtocolError
java.io.IOException
NetworkException
ProtocolError
protected void place(Connection connection, Point point) throws java.io.IOException, NetworkException
java.io.IOException
NetworkException
protected void place(Connection connection, double x, double y) throws java.io.IOException, NetworkException
java.io.IOException
NetworkException
protected void placeNormal(Connection connection, Side side) throws java.io.IOException, NetworkException
java.io.IOException
NetworkException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |