Gridarta Editor
net.sf.gridarta.gui.mapmenu.MapMenuTest Class Reference

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...
 

Detailed Description

Regression tests for MapMenu.

Author
Andreas Kirschbaum

Definition at line 36 of file MapMenuTest.java.

Member Function Documentation

◆ checkDir()

static void net.sf.gridarta.gui.mapmenu.MapMenuTest.checkDir ( @NotNull final MutableTreeNode  dir,
@NotNull final String...  paths 
)
staticprivate

Checks that a MapMenuEntryDir instance contains the given child nodes.

Parameters
dirthe map menu entry dir instance
pathsthe 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:

◆ setUp()

static void net.sf.gridarta.gui.mapmenu.MapMenuTest.setUp ( )
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:

◆ testSubDir1()

void net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir1 ( )

◆ testSubDir2()

void net.sf.gridarta.gui.mapmenu.MapMenuTest.testSubDir2 ( )

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