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

Regression tests for MapMenuUtils. More...

+ Collaboration diagram for net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest:

Public Member Functions

void testRemoveMap1 ()
 Checks that MapMenuUtils#removeMap(MutableTreeNode, MapFile) works as expected. More...
 

Static Public Member Functions

static void setUp ()
 Initializes the test case. More...
 

Static Private Member Functions

static void checkFile (@NotNull final TreeNode dir, @NotNull final String... files)
 Checks that a MapMenuEntryDir instance contains the given child nodes. More...
 

Detailed Description

Regression tests for MapMenuUtils.

Author
Andreas Kirschbaum

Definition at line 37 of file MapMenuUtilsTest.java.

Member Function Documentation

◆ checkFile()

static void net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.checkFile ( @NotNull final TreeNode  dir,
@NotNull final String...  files 
)
staticprivate

Checks that a MapMenuEntryDir instance contains the given child nodes.

Parameters
dirthe map menu entry dir instance
filesthe files of the child nodes TypeMayBeWeakened // IDEA bug

Definition at line 69 of file MapMenuUtilsTest.java.

References net.sf.gridarta.gui.mapmenu.MapMenuEntryMap.getMapFile().

Referenced by net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.testRemoveMap1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

static void net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.setUp ( )
static

Initializes the test case.

Definition at line 88 of file MapMenuUtilsTest.java.

References net.sf.gridarta.preferences.FilePreferencesFactory.initialize().

+ Here is the call graph for this function:

◆ testRemoveMap1()

void net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.testRemoveMap1 ( )

Checks that MapMenuUtils#removeMap(MutableTreeNode, MapFile) works as expected.

Definition at line 44 of file MapMenuUtilsTest.java.

References net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.checkFile(), and net.sf.gridarta.gui.mapmenu.MapMenuUtils.removeMap().

+ Here is the call graph for this function:

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