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

Regression tests for MapFile. More...

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

Public Member Functions

void testGetFile1 ()
 Checks that creating new instances with MapFile#getFile() works as expected. More...
 
void testGetRelativeMapFile1 () throws DifferentMapBaseException
 Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected. More...
 
void testGetRelativeMapFile2 () throws DifferentMapBaseException
 Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected. More...
 
void testNew1 ()
 Checks that creating new instances with MapFile#MapFile(File) works as expected. More...
 
void testNew2 ()
 Checks that creating new instances with String) works as expected. More...
 
void testNew3 ()
 Checks that creating new instances with MapPath) works as expected. More...
 

Detailed Description

Regression tests for MapFile.

Author
Andreas Kirschbaum

Definition at line 30 of file MapFileTest.java.

Member Function Documentation

◆ testGetFile1()

void net.sf.gridarta.model.mapmodel.MapFileTest.testGetFile1 ( )

Checks that creating new instances with MapFile#getFile() works as expected.

Definition at line 114 of file MapFileTest.java.

References net.sf.gridarta.model.mapmodel.MapFile.getFile(), and net.sf.gridarta.model.mapmodel.MapPathUtils.newMapPath().

+ Here is the call graph for this function:

◆ testGetRelativeMapFile1()

void net.sf.gridarta.model.mapmodel.MapFileTest.testGetRelativeMapFile1 ( ) throws DifferentMapBaseException

Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected.

Exceptions
DifferentMapBaseExceptionif the test fails

Definition at line 128 of file MapFileTest.java.

References net.sf.gridarta.model.mapmodel.MapFile.getRelativeMapFileTo(), and net.sf.gridarta.model.mapmodel.MapPathUtils.newMapPath().

+ Here is the call graph for this function:

◆ testGetRelativeMapFile2()

void net.sf.gridarta.model.mapmodel.MapFileTest.testGetRelativeMapFile2 ( ) throws DifferentMapBaseException

Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected.

Exceptions
DifferentMapBaseExceptionif the test fails

Definition at line 144 of file MapFileTest.java.

References net.sf.gridarta.model.mapmodel.MapFile.getRelativeMapFileTo(), and net.sf.gridarta.model.mapmodel.MapPathUtils.newMapPath().

+ Here is the call graph for this function:

◆ testNew1()

void net.sf.gridarta.model.mapmodel.MapFileTest.testNew1 ( )

Checks that creating new instances with MapFile#MapFile(File) works as expected.

Definition at line 37 of file MapFileTest.java.

References net.sf.gridarta.model.mapmodel.MapFile.getMapPath(), net.sf.gridarta.model.mapmodel.MapFile.getMapsDir(), and net.sf.gridarta.model.mapmodel.AbsoluteMapPath.toString().

+ Here is the call graph for this function:

◆ testNew2()

void net.sf.gridarta.model.mapmodel.MapFileTest.testNew2 ( )

Checks that creating new instances with String) works as expected.

Definition at line 48 of file MapFileTest.java.

References net.sf.gridarta.model.mapmodel.MapFile.getMapPath(), net.sf.gridarta.model.mapmodel.MapFile.getMapsDir(), and net.sf.gridarta.model.mapmodel.AbsoluteMapPath.toString().

+ Here is the call graph for this function:

◆ testNew3()

void net.sf.gridarta.model.mapmodel.MapFileTest.testNew3 ( )

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