Gridarta Editor
net.sf.gridarta.model.mapmodel.MapPathTest Class Reference

Regression tests for MapPath. More...

+ Collaboration diagram for net.sf.gridarta.model.mapmodel.MapPathTest:

Public Member Functions

void testAbsolute1 ()
 Checks that absolute map paths are correctly assembled. More...
 
void testGetMapComponent1 ()
 Checks that MapPath#getMapComponent() works as expected. More...
 
void testGetRelativeMapPathTo1 ()
 Checks that MapPath#getRelativeMapPathFrom(AbsoluteMapPath) works as expected. More...
 
void testInvalid1 ()
 Checks that invalid path components are detected. More...
 
void testInvalid2 ()
 Checks that invalid path components are detected. More...
 
void testInvalid3 ()
 Checks that invalid path components are detected. More...
 
void testRelative1 ()
 Checks that relative map paths are correctly assembled. More...
 

Static Private Member Functions

static< T extends MapPath > T check (@NotNull final String expected, @NotNull final T mapPath)
 Checks that a MapPath's string representation matches the expected value. More...
 

Detailed Description

Regression tests for MapPath.

Author
Andreas Kirschbaum

Definition at line 30 of file MapPathTest.java.

Member Function Documentation

◆ check()

static <T extends MapPath> T net.sf.gridarta.model.mapmodel.MapPathTest.check ( @NotNull final String  expected,
@NotNull final T  mapPath 
)
staticprivate

Checks that a MapPath's string representation matches the expected value.

Parameters
expectedthe expected value
mapPaththe map path
Returns
the map path

Definition at line 137 of file MapPathTest.java.

Referenced by net.sf.gridarta.model.mapmodel.MapPathTest.testAbsolute1(), net.sf.gridarta.model.mapmodel.MapPathTest.testGetRelativeMapPathTo1(), and net.sf.gridarta.model.mapmodel.MapPathTest.testRelative1().

+ Here is the caller graph for this function:

◆ testAbsolute1()

void net.sf.gridarta.model.mapmodel.MapPathTest.testAbsolute1 ( )

Checks that absolute map paths are correctly assembled.

Definition at line 36 of file MapPathTest.java.

References net.sf.gridarta.model.mapmodel.MapPathTest.check().

+ Here is the call graph for this function:

◆ testGetMapComponent1()

void net.sf.gridarta.model.mapmodel.MapPathTest.testGetMapComponent1 ( )

Checks that MapPath#getMapComponent() works as expected.

Definition at line 115 of file MapPathTest.java.

References net.sf.gridarta.model.mapmodel.MapPath.getMapComponent(), and net.sf.gridarta.model.mapmodel.MapPathUtils.newMapPath().

+ Here is the call graph for this function:

◆ testGetRelativeMapPathTo1()

void net.sf.gridarta.model.mapmodel.MapPathTest.testGetRelativeMapPathTo1 ( )

◆ testInvalid1()

void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid1 ( )

Checks that invalid path components are detected.

Definition at line 76 of file MapPathTest.java.

◆ testInvalid2()

void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid2 ( )

Checks that invalid path components are detected.

Definition at line 84 of file MapPathTest.java.

◆ testInvalid3()

void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid3 ( )

Checks that invalid path components are detected.

Definition at line 92 of file MapPathTest.java.

◆ testRelative1()

void net.sf.gridarta.model.mapmodel.MapPathTest.testRelative1 ( )

Checks that relative map paths are correctly assembled.

Definition at line 52 of file MapPathTest.java.

References net.sf.gridarta.model.mapmodel.MapPathTest.check().

+ Here is the call graph for this function:

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