|
Gridarta Editor
|
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 AbsoluteMapPath#getRelativeMapPathTo(MapPath) 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... | |
Regression tests for MapPath.
Definition at line 30 of file MapPathTest.java.
|
staticprivate |
Checks that a MapPath's string representation matches the expected value.
| expected | the expected value |
| mapPath | 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:| 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:| 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:| void net.sf.gridarta.model.mapmodel.MapPathTest.testGetRelativeMapPathTo1 | ( | ) |
Checks that AbsoluteMapPath#getRelativeMapPathTo(MapPath) works as expected.
Definition at line 101 of file MapPathTest.java.
References net.sf.gridarta.model.mapmodel.MapPathTest.check(), net.sf.gridarta.model.mapmodel.AbsoluteMapPath.getRelativeMapPathTo(), net.sf.gridarta.model.mapmodel.MapPathUtils.newAbsoluteMapPath(), and net.sf.gridarta.model.mapmodel.MapPathUtils.newMapPath().
Here is the call graph for this function:| void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid1 | ( | ) |
Checks that invalid path components are detected.
Definition at line 76 of file MapPathTest.java.
| void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid2 | ( | ) |
Checks that invalid path components are detected.
Definition at line 84 of file MapPathTest.java.
| void net.sf.gridarta.model.mapmodel.MapPathTest.testInvalid3 | ( | ) |
Checks that invalid path components are detected.
Definition at line 92 of file MapPathTest.java.
| 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: