public class BoxTest extends java.lang.Object
Ball
,
BallContainer
,
Box
Constructor and Description |
---|
BoxTest() |
Modifier and Type | Method and Description |
---|---|
static void |
setupBeforeTests() |
void |
testAdd()
Test to check that Box.add(Ball) is implemented correctly
|
void |
testClear()
Test to check that Box.clear() is implemented correctly
|
void |
testContains()
Test to check that size() returns the correct number.
|
void |
testGetBalls()
Test to check that Box.getBallsFromSmallest() is implemented correctly
|
void |
testIterator()
Test to check that iterator() is implemented correctly.
|
void |
testRemove()
Test to check that Box.remove(Ball) is implemented
correctly.
|
void |
testSize()
Test to check that size() returns the correct number.
|
void |
testVolume()
Test to check that check that we can put a Ball into a Box
|
public BoxTest()
public static void setupBeforeTests() throws java.lang.Exception
java.lang.Exception
public void testAdd()
public void testGetBalls()
public void testRemove()
getBallsFromSmallest()
is implemented, remove() might have to be overridden and this
test helps ensure that remove() is not broken in the process.public void testClear()
public void testVolume()
public void testSize()
public void testContains()
public void testIterator()