karel.tests
Class WorldTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--karel.tests.WorldTest
All Implemented Interfaces:
junit.framework.Test

public class WorldTest
extends junit.framework.TestCase


Field Summary
protected  int fAvenues
           
protected  int fStreets
           
protected  World fWorld
           
 
Constructor Summary
WorldTest(java.lang.String name)
           
 
Method Summary
protected  void initForEquals(World w)
           
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testBeepers()
           
 void testBounds()
           
 void testComments()
           
 void testEquals()
           
 void testEWWall()
           
 void testNSWall()
           
 void testParser()
           
 void testSerialization()
           
 void testWalls()
          Make sure there are walls to the east and north of the world.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fWorld

protected World fWorld

fAvenues

protected int fAvenues

fStreets

protected int fStreets
Constructor Detail

WorldTest

public WorldTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

testBounds

public void testBounds()

testBeepers

public void testBeepers()

testWalls

public void testWalls()
Make sure there are walls to the east and north of the world. This was a bug, hence a test.

testEWWall

public void testEWWall()

testNSWall

public void testNSWall()

initForEquals

protected void initForEquals(World w)

testEquals

public void testEquals()

testSerialization

public void testSerialization()

testParser

public void testParser()

testComments

public void testComments()