|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
ppJava.serie04.oceanlife.OceanObjectJUnitTest
public class OceanObjectJUnitTest
Some Tests (incomplete)
Field Summary | |
---|---|
(package private) java.util.LinkedList<OceanObject> |
objList
|
(package private) int[] |
position
|
(package private) int |
x
|
(package private) int |
y
|
Constructor Summary | |
---|---|
OceanObjectJUnitTest()
|
Method Summary | |
---|---|
private void |
checkNewObject(int[] position,
OceanObject oceanObject)
|
private void |
checkObjectCount(int count)
|
private void |
checkObjectPosition(OceanObject oceanObject)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testAddOceanObjectBubble()
|
void |
testAddOceanObjectFish()
|
void |
testAddOceanObjectPlant()
|
void |
testAddOceanObjectStone()
|
void |
testAppendOceanObject()
|
void |
testDistance()
|
void |
testGetNextObjectInRange()
|
void |
testOceanObjects()
|
void |
testOceanWidth()
|
void |
testRemoveObjectAtIndex()
|
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 |
---|
int x
int y
int[] position
java.util.LinkedList<OceanObject> objList
Constructor Detail |
---|
public OceanObjectJUnitTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
private void checkNewObject(int[] position, OceanObject oceanObject)
position
- oceanObject
- private void checkObjectCount(int count)
count
- private void checkObjectPosition(OceanObject oceanObject)
oceanObject
- public void testOceanWidth() throws java.lang.Exception
java.lang.Exception
public void testAddOceanObjectBubble() throws java.lang.Exception
java.lang.Exception
public void testAddOceanObjectStone() throws java.lang.Exception
java.lang.Exception
public void testAddOceanObjectPlant() throws java.lang.Exception
java.lang.Exception
public void testAddOceanObjectFish() throws java.lang.Exception
java.lang.Exception
public void testAppendOceanObject() throws java.lang.Exception
java.lang.Exception
public void testGetNextObjectInRange() throws java.lang.Exception
java.lang.Exception
public void testRemoveObjectAtIndex() throws java.lang.Exception
java.lang.Exception
public void testDistance() throws java.lang.Exception
java.lang.Exception
public void testOceanObjects() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |