|
Gridarta Editor
|
Regression tests for MapMenu. More...
Collaboration diagram for net.sf.gridarta.gui.mapmenu.MapMenuTest:Public Member Functions | |
| void | testSubDir1 () |
| Checks that MapMenu#getOrCreateDirectory(MutableTreeNode, String) works as expected. More... | |
| void | testSubDir2 () |
| Checks that MapMenu#getOrCreateDirectory(MutableTreeNode, String) rejects invalid path names. More... | |
Static Public Member Functions | |
| static void | setUp () |
| Initializes the test case. More... | |
Static Private Member Functions | |
| static void | checkDir (@NotNull final MutableTreeNode dir, @NotNull final String... paths) |
| Checks that a MapMenuEntryDir instance contains the given child nodes. More... | |
Regression tests for MapMenu.
Definition at line 36 of file MapMenuTest.java.
|
staticprivate |
Checks that a MapMenuEntryDir instance contains the given child nodes.
| dir | the map menu entry dir instance |
| paths | the paths of the child nodes TypeMayBeWeakened // IDEA bug |
Definition at line 96 of file MapMenuTest.java.
References net.sf.gridarta.gui.mapmenu.MapMenuEntry.getTitle().
Referenced by net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir1(), and net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir2().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Initializes the test case.
Definition at line 109 of file MapMenuTest.java.
References net.sf.gridarta.preferences.FilePreferencesFactory.initialize().
Here is the call graph for this function:| void net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir1 | ( | ) |
Checks that MapMenu#getOrCreateDirectory(MutableTreeNode, String) works as expected.
Definition at line 43 of file MapMenuTest.java.
References net.sf.gridarta.gui.mapmenu.MapMenuTest.checkDir(), net.sf.gridarta.gui.mapmenu.MapMenu.getOrCreateDirectory(), and net.sf.gridarta.gui.mapmenu.MapMenu.getRoot().
Here is the call graph for this function:| void net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir2 | ( | ) |
Checks that MapMenu#getOrCreateDirectory(MutableTreeNode, String) rejects invalid path names.
Definition at line 62 of file MapMenuTest.java.
References net.sf.gridarta.gui.mapmenu.MapMenuTest.checkDir(), net.sf.gridarta.gui.mapmenu.MapMenu.getOrCreateDirectory(), and net.sf.gridarta.gui.mapmenu.MapMenu.getRoot().
Here is the call graph for this function: