sysModel.fish.tests
Class Test_Fish

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by sysModel.fish.tests.Test_Fish
All Implemented Interfaces:
junit.framework.Test

public class Test_Fish
extends junit.framework.TestCase

Test cases for AFish.

Author:
Mathias Ricken

Nested Class Summary
private  class Test_Fish.TestFish
           
private  class Test_Fish.TestGlobalEnv
           
 
Field Summary
private static ILambda _add
           
private  ICmdFactory _cmdFactory
           
private static ILambda _delete
           
private  IBlockedCommand _dummyB
           
private  IOpenCommand _dummyO
           
private  Test_Fish.TestGlobalEnv _env
           
private  Test_Fish.TestFish _fish
           
private  AGlobalEnv.ALocalEnv _localEnv
           
private static ILambda _notify
           
private  ISecurityAdapter _sm
           
 
Constructor Summary
Test_Fish()
           
 
Method Summary
 void setUp()
           
 void testDie()
          Test fish to local environment delegation for age.
 void testDraw()
          Test fish to local environment delegation for draw.
 void testTryBreedFwd()
          Test fish to local environment delegation for tryBreedFwd.
 void testTryMoveFwd()
          Test fish to local environment delegation for tryMoveFwd.
 void testTurnLeft()
          Test fish to local environment delegation for turnLeft.
 void testTurnRight()
          Test fish to local environment delegation for turnRight.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

_dummyB

private IBlockedCommand _dummyB

_dummyO

private IOpenCommand _dummyO

_cmdFactory

private ICmdFactory _cmdFactory

_sm

private ISecurityAdapter _sm

_fish

private Test_Fish.TestFish _fish

_env

private Test_Fish.TestGlobalEnv _env

_localEnv

private AGlobalEnv.ALocalEnv _localEnv

_notify

private static final ILambda _notify

_delete

private static final ILambda _delete

_add

private static final ILambda _add
Constructor Detail

Test_Fish

public Test_Fish()
Method Detail

setUp

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

testTryMoveFwd

public void testTryMoveFwd()
Test fish to local environment delegation for tryMoveFwd.


testTryBreedFwd

public void testTryBreedFwd()
Test fish to local environment delegation for tryBreedFwd.


testDraw

public void testDraw()
Test fish to local environment delegation for draw.


testTurnRight

public void testTurnRight()
Test fish to local environment delegation for turnRight.


testTurnLeft

public void testTurnLeft()
Test fish to local environment delegation for turnLeft.


testDie

public void testDie()
Test fish to local environment delegation for age.