Gridarta 9263
API Documentation

net.sf.gridarta.gui.panel.selectedsquare
Class SelectedSquareActionsTest

java.lang.Object
  extended by net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareActionsTest

public class SelectedSquareActionsTest
extends Object

Regression tests for SelectedSquareActions.

Author:
Andreas Kirschbaum

Field Summary
private static File MAP_FILE1
          The first map file.
private static String MAP_NAME1
          The first map name.
 
Constructor Summary
SelectedSquareActionsTest()
           
 
Method Summary
 void testDoMoveSquareBottomMulti()
          Checks that SelectedSquareActions.doMoveSquareBottom(boolean) does work for multi-square game objects.
 void testDoMoveSquareBottomSingle()
          Checks that SelectedSquareActions.doMoveSquareBottom(boolean) does work for single-square game objects.
 void testDoMoveSquareDownMulti()
          Checks that SelectedSquareActions.doMoveSquareDown(boolean) does work for multi-square game objects.
 void testDoMoveSquareDownSingle()
          Checks that SelectedSquareActions.doMoveSquareDown(boolean) does work for single-square game objects.
 void testDoMoveSquareEnvMulti3()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for multi-square game objects.
 void testDoMoveSquareEnvMulti4()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for multi-square game objects.
 void testDoMoveSquareEnvSingle1()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.
 void testDoMoveSquareEnvSingle2()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.
 void testDoMoveSquareEnvSingle3()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.
 void testDoMoveSquareInvIntoHead1()
          Checks that SelectedSquareActions.doMoveSquareInv(boolean) always inserts into the head-part.
 void testDoMoveSquareInvMulti1()
          Checks that SelectedSquareActions.doMoveSquareInv(boolean) does work for multi-square game objects.
 void testDoMoveSquareInvSingle1()
          Checks that SelectedSquareActions.doMoveSquareInv(boolean) does work for single-square game objects.
 void testDoMoveSquareTopMulti()
          Checks that SelectedSquareActions.doMoveSquareTop(boolean) does work for multi-square game objects.
 void testDoMoveSquareTopSingle()
          Checks that SelectedSquareActions.doMoveSquareTop(boolean) does work for single-square game objects.
 void testDoMoveSquareUpMulti()
          Checks that SelectedSquareActions.doMoveSquareUp(boolean) does work for multi-square game objects.
 void testDoMoveSquareUpSingle()
          Checks that SelectedSquareActions.doMoveSquareUp(boolean) does work for single-square game objects.
 void testMoveEnvIntoSelectedMapSquare()
          Checks that SelectedSquareActions.doMoveSquareEnv(boolean) inserts into selected map square.
 void testMoveTailPart()
          Checks that tail parts cannot be moved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP_FILE1

private static final File MAP_FILE1
The first map file.


MAP_NAME1

private static final String MAP_NAME1
The first map name.

See Also:
Constant Field Values
Constructor Detail

SelectedSquareActionsTest

public SelectedSquareActionsTest()
Method Detail

testDoMoveSquareTopSingle

public void testDoMoveSquareTopSingle()
                               throws CannotInsertGameObjectException,
                                      DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareTop(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareTopMulti

public void testDoMoveSquareTopMulti()
                              throws CannotInsertGameObjectException,
                                     DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareTop(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareUpSingle

public void testDoMoveSquareUpSingle()
                              throws CannotInsertGameObjectException,
                                     DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareUp(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareUpMulti

public void testDoMoveSquareUpMulti()
                             throws CannotInsertGameObjectException,
                                    DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareUp(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareDownSingle

public void testDoMoveSquareDownSingle()
                                throws CannotInsertGameObjectException,
                                       DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareDown(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareDownMulti

public void testDoMoveSquareDownMulti()
                               throws CannotInsertGameObjectException,
                                      DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareDown(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareBottomSingle

public void testDoMoveSquareBottomSingle()
                                  throws CannotInsertGameObjectException,
                                         DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareBottom(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareBottomMulti

public void testDoMoveSquareBottomMulti()
                                 throws CannotInsertGameObjectException,
                                        DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareBottom(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareEnvSingle1

public void testDoMoveSquareEnvSingle1()
                                throws CannotInsertGameObjectException,
                                       DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareEnvSingle2

public void testDoMoveSquareEnvSingle2()
                                throws CannotInsertGameObjectException,
                                       DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareEnvSingle3

public void testDoMoveSquareEnvSingle3()
                                throws CannotInsertGameObjectException,
                                       DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareEnvMulti3

public void testDoMoveSquareEnvMulti3()
                               throws CannotInsertGameObjectException,
                                      DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareEnvMulti4

public void testDoMoveSquareEnvMulti4()
                               throws CannotInsertGameObjectException,
                                      DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareInvSingle1

public void testDoMoveSquareInvSingle1()
                                throws CannotInsertGameObjectException,
                                       DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareInv(boolean) does work for single-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareInvMulti1

public void testDoMoveSquareInvMulti1()
                               throws CannotInsertGameObjectException,
                                      DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareInv(boolean) does work for multi-square game objects.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testDoMoveSquareInvIntoHead1

public void testDoMoveSquareInvIntoHead1()
                                  throws CannotInsertGameObjectException,
                                         DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareInv(boolean) always inserts into the head-part.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testMoveTailPart

public void testMoveTailPart()
                      throws CannotInsertGameObjectException,
                             DuplicateArchetypeException
Checks that tail parts cannot be moved.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

testMoveEnvIntoSelectedMapSquare

public void testMoveEnvIntoSelectedMapSquare()
                                      throws CannotInsertGameObjectException,
                                             DuplicateArchetypeException
Checks that SelectedSquareActions.doMoveSquareEnv(boolean) inserts into selected map square.

Throws:
CannotInsertGameObjectException - if the test fails
DuplicateArchetypeException - if the test fails

Gridarta 9263
API Documentation

SourceForge.net Logo Support This Project freshmeat.net Valid CSS! Feedback: webmaster