net.sf.gridarta.model.mapmodel
public class AutoInsertionModeTest extends Object
AutoInsertionMode
.Modifier and Type | Field and Description |
---|---|
private InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> |
autoInsertionMode
The auto-insertion mode.
|
private GameObjectMatcher |
belowFloorGameObjectMatcher
A
GameObjectMatcher that matches objects to be put below the
floor. |
private GameObjectMatcher |
floorGameObjectMatcher
A
GameObjectMatcher that matches floor objects. |
private TestMapModelCreator |
mapModelCreator
The
TestMapModelCreator instance. |
private GameObjectMatcher |
systemGameObjectMatcher
A
GameObjectMatcher that matches system objects. |
private InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> |
topmostInsertionMode
The topmost-insertion mode.
|
private static int |
TYPE_BELOW_FLOOR
The archetype type for objects to be put below the floor.
|
private static int |
TYPE_FLOOR
The archetype type for floor objects.
|
private static int |
TYPE_SYSTEM
The archetype type for system objects.
|
private static int |
TYPE_WALL
The archetype type for wall objects.
|
private GameObjectMatcher |
wallGameObjectMatcher
A
GameObjectMatcher that matches wall objects. |
Constructor and Description |
---|
AutoInsertionModeTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Initializes the tests.
|
void |
testInsertSystemObject1()
Checks that the auto-insertion mode works as expected.
|
void |
testInsertSystemObject2()
Checks that the auto-insertion mode works as expected.
|
private static final int TYPE_FLOOR
private static final int TYPE_WALL
private static final int TYPE_BELOW_FLOOR
private static final int TYPE_SYSTEM
@NotNull private final GameObjectMatcher floorGameObjectMatcher
GameObjectMatcher
that matches floor objects.@NotNull private final GameObjectMatcher wallGameObjectMatcher
GameObjectMatcher
that matches wall objects.@NotNull private final GameObjectMatcher belowFloorGameObjectMatcher
GameObjectMatcher
that matches objects to be put below the
floor.@NotNull private final GameObjectMatcher systemGameObjectMatcher
GameObjectMatcher
that matches system objects.@NotNull private final InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> autoInsertionMode
@NotNull private final InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> topmostInsertionMode
private TestMapModelCreator mapModelCreator
TestMapModelCreator
instance.public AutoInsertionModeTest()
public void testInsertSystemObject1() throws DuplicateArchetypeException
DuplicateArchetypeException
- if the test failspublic void testInsertSystemObject2()
public void setUp() throws DuplicateArchetypeException
DuplicateArchetypeException
- if the test failsFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.