public class MatrixTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ObjID,NetPuzlObject> |
cache
A cache/symbol table of NetPuzlObjects and their associated object IDs
|
Constructor and Description |
---|
MatrixTest() |
Modifier and Type | Method and Description |
---|---|
void |
createCache()
Initializes a cache before each JUnit test
|
void |
testAddAgent()
Tests that adding Agents to a matrix works by verifying the Agent
container within the matrix contains the expected number of Agents
|
void |
testAddKey()
Tests that adding Keys to a matrix works by verifying the Key container
within the matrix contains the expected number of Keys
|
void |
testGridSize()
Tests that matrices properly initialize with the grid size constants
defined in their corresponding factories
|
void |
testRemoveAgent()
Tests that removing Agents from a matrix works by verifying the Agent
container within the matrix contains the expected number of Agents and
the correct Agent was removed
|
void |
testRemoveKey()
Tests that removing Keys from a matrix works by verifying the Key
container within the matrix contains the expected number of Keys and the
correct Key was removed
|
void |
testSetCell()
Tests that setting the Cell of a matrix grid works by verifying the Cell
contains the expected Token
|
void |
testZeroAgents()
Tests that a matrix properly initializes with zero Agents
|
void |
testZeroKeys()
Tests that a matrix properly initializes with zero Keys
|
private java.util.Map<ObjID,NetPuzlObject> cache
public void createCache()
public void testAddAgent()
public void testAddKey()
public void testGridSize()
public void testRemoveAgent()
public void testRemoveKey()
public void testSetCell()
public void testZeroAgents()
public void testZeroKeys()