ppJava.serie04.oceanlife
Class OceanObjectJUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ppJava.serie04.oceanlife.OceanObjectJUnitTest
All Implemented Interfaces:
junit.framework.Test

public class OceanObjectJUnitTest
extends junit.framework.TestCase

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

x

int x

y

int y

position

int[] position

objList

java.util.LinkedList<OceanObject> objList
Constructor Detail

OceanObjectJUnitTest

public OceanObjectJUnitTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

checkNewObject

private void checkNewObject(int[] position,
                            OceanObject oceanObject)
Parameters:
position -
oceanObject -

checkObjectCount

private void checkObjectCount(int count)
Parameters:
count -

checkObjectPosition

private void checkObjectPosition(OceanObject oceanObject)
Parameters:
oceanObject -

testOceanWidth

public void testOceanWidth()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testAddOceanObjectBubble

public void testAddOceanObjectBubble()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testAddOceanObjectStone

public void testAddOceanObjectStone()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testAddOceanObjectPlant

public void testAddOceanObjectPlant()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testAddOceanObjectFish

public void testAddOceanObjectFish()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testAppendOceanObject

public void testAppendOceanObject()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testGetNextObjectInRange

public void testGetNextObjectInRange()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveObjectAtIndex

public void testRemoveObjectAtIndex()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testDistance

public void testDistance()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testOceanObjects

public void testOceanObjects()
                      throws java.lang.Exception
Throws:
java.lang.Exception