Gridarta Editor
net.sf.gridarta.action.SelectedSquareActionsTest Class Reference

Regression tests for AbstractMoveSquareAction implementations. More...

+ Collaboration diagram for net.sf.gridarta.action.SelectedSquareActionsTest:

Public Member Functions

void testDoMoveSquareBottomMulti () throws DuplicateArchetypeException
 Checks that MoveSquareBottomAction does work for multi-square game objects. More...
 
void testDoMoveSquareBottomSingle () throws DuplicateArchetypeException
 Checks that MoveSquareBottomAction does work for single-square game objects. More...
 
void testDoMoveSquareDownMulti () throws DuplicateArchetypeException
 Checks that MoveSquareDownAction does work for multi-square game objects. More...
 
void testDoMoveSquareDownSingle () throws DuplicateArchetypeException
 Checks that MoveSquareDownAction does work for single-square game objects. More...
 
void testDoMoveSquareEnvMulti3 () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction does work for multi-square game objects. More...
 
void testDoMoveSquareEnvMulti4 () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction does work for multi-square game objects. More...
 
void testDoMoveSquareEnvSingle1 () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction does work for single-square game objects. More...
 
void testDoMoveSquareEnvSingle2 () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction does work for single-square game objects. More...
 
void testDoMoveSquareEnvSingle3 () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction does work for single-square game objects. More...
 
void testDoMoveSquareInvIntoHead1 () throws DuplicateArchetypeException
 Checks that MoveSquareInvAction always inserts into the head-part. More...
 
void testDoMoveSquareInvMulti1 () throws DuplicateArchetypeException
 Checks that MoveSquareInvAction does work for multi-square game objects. More...
 
void testDoMoveSquareInvSingle1 () throws DuplicateArchetypeException
 Checks that MoveSquareInvAction does work for single-square game objects. More...
 
void testDoMoveSquareTopMulti () throws DuplicateArchetypeException
 Checks that MoveSquareTopAction does work for multi-square game objects. More...
 
void testDoMoveSquareTopSingle () throws DuplicateArchetypeException
 Checks that MoveSquareTopAction does work for single-square game objects. More...
 
void testDoMoveSquareUpMulti () throws DuplicateArchetypeException
 Checks that MoveSquareUpAction does work for multi-square game objects. More...
 
void testDoMoveSquareUpSingle () throws DuplicateArchetypeException
 Checks that MoveSquareUpAction does work for single-square game objects. More...
 
void testMoveEnvIntoSelectedMapSquare () throws DuplicateArchetypeException
 Checks that MoveSquareEnvAction inserts into selected map square. More...
 
void testMoveTailPart () throws DuplicateArchetypeException
 Checks that tail parts cannot be moved. More...
 

Static Private Attributes

static final MapFile MAP_FILE1 = new MapFile(new File("a"))
 The first map file. More...
 
static final String MAP_NAME1 = "name1"
 The first map name. More...
 

Detailed Description

Regression tests for AbstractMoveSquareAction implementations.

Author
Andreas Kirschbaum

Definition at line 43 of file SelectedSquareActionsTest.java.

Member Function Documentation

◆ testDoMoveSquareBottomMulti()

◆ testDoMoveSquareBottomSingle()

◆ testDoMoveSquareDownMulti()

◆ testDoMoveSquareDownSingle()

◆ testDoMoveSquareEnvMulti3()

◆ testDoMoveSquareEnvMulti4()

◆ testDoMoveSquareEnvSingle1()

◆ testDoMoveSquareEnvSingle2()

◆ testDoMoveSquareEnvSingle3()

◆ testDoMoveSquareInvIntoHead1()

◆ testDoMoveSquareInvMulti1()

◆ testDoMoveSquareInvSingle1()

◆ testDoMoveSquareTopMulti()

◆ testDoMoveSquareTopSingle()

◆ testDoMoveSquareUpMulti()

◆ testDoMoveSquareUpSingle()

◆ testMoveEnvIntoSelectedMapSquare()

◆ testMoveTailPart()

void net.sf.gridarta.action.SelectedSquareActionsTest.testMoveTailPart ( ) throws DuplicateArchetypeException

Checks that tail parts cannot be moved.

Exceptions
DuplicateArchetypeExceptionif the test fails

Definition at line 936 of file SelectedSquareActionsTest.java.

References 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.TestMapModelHelper.checkMapContents(), net.sf.gridarta.action.MoveSquareTopAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareUpAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareDownAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareBottomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareInvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), 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.mapmodel.TestMapModelHelper.insertExit(), net.sf.gridarta.model.mapmodel.TestMapModelHelper.insertMob21(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), and net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapModelCreator().

+ Here is the call graph for this function:

Member Data Documentation

◆ MAP_FILE1

final MapFile net.sf.gridarta.action.SelectedSquareActionsTest.MAP_FILE1 = new MapFile(new File("a"))
staticprivate

The first map file.

Definition at line 48 of file SelectedSquareActionsTest.java.

◆ MAP_NAME1

final String net.sf.gridarta.action.SelectedSquareActionsTest.MAP_NAME1 = "name1"
staticprivate

The first map name.

Definition at line 53 of file SelectedSquareActionsTest.java.


The documentation for this class was generated from the following file: