net.sf.gridarta.actions
public class UndoActionsTest extends Object
UndoActions
.Constructor and Description |
---|
UndoActionsTest() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkFace(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
int x,
int y,
String face)
Checks the face name of the first object in a map square.
|
void |
testInsert1()
Checks that undo correctly sets the "face" attribute.
|
public UndoActionsTest()
public void testInsert1() throws CannotInsertGameObjectException, DuplicateArchetypeException, IllegalAutojoinListException
IllegalAutojoinListException
- if the test failsDuplicateArchetypeException
- if the test failsCannotInsertGameObjectException
- if the test failsprivate static void checkFace(@NotNull MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel, int x, int y, @NotNull String face)
mapModel
- the map model to checkx
- the x coordinate of the map square to checky
- the y coordinate of the map square to checkface
- the expected face nameFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.