|
Gridarta Editor
|
Regression tests for AutoInsertionMode. More...
Collaboration diagram for net.sf.gridarta.model.mapmodel.AutoInsertionModeTest:Public Member Functions | |
| void | setUp () throws DuplicateArchetypeException |
| Initializes the tests. More... | |
| void | testInsertSystemObject1 () throws DuplicateArchetypeException |
| Checks that the auto-insertion mode works as expected. More... | |
| void | testInsertSystemObject2 () |
| Checks that the auto-insertion mode works as expected. More... | |
Static Private Attributes | |
| static final int | TYPE_BELOW_FLOOR = 3 |
| The archetype type for objects to be put below the floor. More... | |
| static final int | TYPE_FLOOR = 1 |
| The archetype type for floor objects. More... | |
| static final int | TYPE_SYSTEM = 4 |
| The archetype type for system objects. More... | |
| static final int | TYPE_WALL = 2 |
| The archetype type for wall objects. More... | |
Regression tests for AutoInsertionMode.
Definition at line 40 of file AutoInsertionModeTest.java.
| void net.sf.gridarta.model.mapmodel.AutoInsertionModeTest.setUp | ( | ) | throws DuplicateArchetypeException |
Initializes the tests.
| DuplicateArchetypeException | if the test fails |
Definition at line 161 of file AutoInsertionModeTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetypeSet(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.newArchetype(), and net.sf.gridarta.model.baseobject.BaseObject< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, T extends BaseObject< G, A, R, T >.TYPE.
Here is the call graph for this function:| void net.sf.gridarta.model.mapmodel.AutoInsertionModeTest.testInsertSystemObject1 | ( | ) | throws DuplicateArchetypeException |
Checks that the auto-insertion mode works as expected.
| DuplicateArchetypeException | if the test fails |
Definition at line 109 of file AutoInsertionModeTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.addGameObjectToMap(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapSquare(), net.sf.gridarta.model.baseobject.GameObjectContainer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.iterator(), and net.sf.gridarta.model.mapmodel.TestMapModelCreator.newMapModel().
Here is the call graph for this function:| void net.sf.gridarta.model.mapmodel.AutoInsertionModeTest.testInsertSystemObject2 | ( | ) |
Checks that the auto-insertion mode works as expected.
Definition at line 135 of file AutoInsertionModeTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.addGameObjectToMap(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapSquare(), net.sf.gridarta.model.baseobject.GameObjectContainer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.iterator(), and net.sf.gridarta.model.mapmodel.TestMapModelCreator.newMapModel().
Here is the call graph for this function:
|
private |
The auto-insertion mode.
Definition at line 91 of file AutoInsertionModeTest.java.
|
private |
A GameObjectMatcher that matches objects to be put below the floor.
Definition at line 79 of file AutoInsertionModeTest.java.
|
private |
A GameObjectMatcher that matches floor objects.
Definition at line 66 of file AutoInsertionModeTest.java.
|
private |
The TestMapModelCreator instance.
Definition at line 102 of file AutoInsertionModeTest.java.
|
private |
A GameObjectMatcher that matches system objects.
Definition at line 85 of file AutoInsertionModeTest.java.
|
private |
The topmost-insertion mode.
Definition at line 97 of file AutoInsertionModeTest.java.
|
staticprivate |
The archetype type for objects to be put below the floor.
Definition at line 55 of file AutoInsertionModeTest.java.
|
staticprivate |
The archetype type for floor objects.
Definition at line 45 of file AutoInsertionModeTest.java.
|
staticprivate |
The archetype type for system objects.
Definition at line 60 of file AutoInsertionModeTest.java.
|
staticprivate |
The archetype type for wall objects.
Definition at line 50 of file AutoInsertionModeTest.java.
|
private |
A GameObjectMatcher that matches wall objects.
Definition at line 72 of file AutoInsertionModeTest.java.