public class BallContainerTest extends java.lang.Object
Ball
,
BallContainer
Constructor and Description |
---|
BallContainerTest() |
Modifier and Type | Method and Description |
---|---|
static void |
setupForTests() |
void |
testAdd()
Test to check that BallContainer.add(Ball) is implemented correctly
|
void |
testClear()
Test that BallContainer.clear() is implemented correctly.
|
void |
testContains()
Test that size() returns the correct number.
|
void |
testIterator()
Test to check that BallContainer.iterator() is implemented
correctly.
|
void |
testRemove()
Test to check that BallContainer.remove(Ball) is implemented correctly
|
void |
testSize()
Test that size() returns the correct number.
|
void |
testVolume()
Test that we can put a Ball into a BallContainer
|
void |
testVolumeAfterClear()
Test that clear removes all balls.
|
public BallContainerTest()
public static void setupForTests() throws java.lang.Exception
java.lang.Exception
public void testAdd()
public void testRemove()
public void testIterator()
public void testClear()
public void testVolume()
public void testSize()
public void testContains()
public void testVolumeAfterClear()