net.walend.grid.test
Class AbstractMapGrid2DTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.walend.toolkit.junit.TestCase
|
+--net.walend.grid.test.AbstractMapGrid2DTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- MapGrid2DTest, MutableMapGrid2DTest
- public abstract class AbstractMapGrid2DTest
- extends net.walend.toolkit.junit.TestCase
- Author:
- David Walend dfw1@cornell.edu
Fields inherited from class junit.framework.TestCase |
|
Method Summary |
protected abstract Grid2D |
createGrid(Grid2D grid)
|
void |
testAdd()
|
void |
testAddAll()
|
void |
testAddressIterator()
|
void |
testAddressOf(Grid grid,
java.lang.Object object,
Address expected,
boolean offGrid)
|
abstract void |
testClear()
|
void |
testCollectionQueries()
|
abstract void |
testConstructors()
|
void |
testContains(java.util.Collection co,
java.lang.Object it,
boolean expected)
|
void |
testContainsAddress(Grid grid,
Address address,
boolean expected)
|
void |
testContainsAll(java.util.Collection co,
java.util.Set it,
boolean expected)
|
void |
testGet(Grid2D grid,
int i,
int j,
java.lang.Object expected,
boolean offGrid)
|
void |
testGet(Grid grid,
Address address,
java.lang.Object expected,
boolean offGrid)
|
void |
testIsEmpty(java.util.Collection co,
boolean expected)
|
void |
testIterator()
|
void |
testIterator(java.util.Iterator it,
java.util.List expected)
|
void |
testMaxAddress(Grid grid,
Address expected)
|
void |
testQueries()
|
abstract void |
testRemove()
|
abstract void |
testRemoveAll()
|
abstract void |
testRetainAll()
|
void |
testSameGrid2DAs(Grid2D grid1,
Grid2D grid2,
boolean expected)
|
void |
testSameStateAs(Grid2D grid1,
HasState ob,
boolean expected)
|
void |
testSerialization()
|
void |
testSize(java.util.Collection co,
int expected)
|
void |
testSizeI(Grid2D grid,
int expected)
|
void |
testSizeJ(Grid2D grid,
int expected)
|
void |
testStripeIteratorByAddress()
|
void |
testStripeIterators()
|
Methods inherited from class net.walend.toolkit.junit.TestCase |
fail, fail |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, 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 |
AbstractMapGrid2DTest
public AbstractMapGrid2DTest(java.lang.String testName)
testSizeI
public void testSizeI(Grid2D grid,
int expected)
testSizeJ
public void testSizeJ(Grid2D grid,
int expected)
testGet
public void testGet(Grid2D grid,
int i,
int j,
java.lang.Object expected,
boolean offGrid)
testSameGrid2DAs
public void testSameGrid2DAs(Grid2D grid1,
Grid2D grid2,
boolean expected)
testSameStateAs
public void testSameStateAs(Grid2D grid1,
HasState ob,
boolean expected)
testMaxAddress
public void testMaxAddress(Grid grid,
Address expected)
testContainsAddress
public void testContainsAddress(Grid grid,
Address address,
boolean expected)
testGet
public void testGet(Grid grid,
Address address,
java.lang.Object expected,
boolean offGrid)
testAddressOf
public void testAddressOf(Grid grid,
java.lang.Object object,
Address expected,
boolean offGrid)
createGrid
protected abstract Grid2D createGrid(Grid2D grid)
testQueries
public void testQueries()
testIterator
public void testIterator(java.util.Iterator it,
java.util.List expected)
testStripeIterators
public void testStripeIterators()
testStripeIteratorByAddress
public void testStripeIteratorByAddress()
testSize
public void testSize(java.util.Collection co,
int expected)
testIsEmpty
public void testIsEmpty(java.util.Collection co,
boolean expected)
testContains
public void testContains(java.util.Collection co,
java.lang.Object it,
boolean expected)
testContainsAll
public void testContainsAll(java.util.Collection co,
java.util.Set it,
boolean expected)
testCollectionQueries
public void testCollectionQueries()
testIterator
public void testIterator()
testAddressIterator
public void testAddressIterator()
testAdd
public void testAdd()
testAddAll
public void testAddAll()
testSerialization
public void testSerialization()
testRemove
public abstract void testRemove()
testRemoveAll
public abstract void testRemoveAll()
testRetainAll
public abstract void testRetainAll()
testClear
public abstract void testClear()
testConstructors
public abstract void testConstructors()
Copyright (c) 2001, 2002, David Walend