20 package net.sf.gridarta.model.mapmodel;
23 import org.junit.Assert;
24 import org.junit.Test;
39 Assert.assertEquals(
new File(
"abc"), f1.
getMapsDir());
50 Assert.assertEquals(
new File(
"abc"), f1.
getMapsDir());
54 Assert.assertEquals(
new File(
"abc"), f2.
getMapsDir());
58 Assert.assertEquals(
new File(
"abc"), f3.
getMapsDir());
62 Assert.assertEquals(
new File(
"abc"), f4.
getMapsDir());
66 Assert.assertEquals(
new File(
"abc"), f5.
getMapsDir());
70 Assert.assertEquals(
new File(
"abc"), f6.
getMapsDir());
74 Assert.assertEquals(
new File(
"abc"), f7.
getMapsDir());
85 Assert.assertEquals(
new File(
"abc"), f1.
getMapsDir());
89 Assert.assertEquals(
new File(
"abc"), f2.
getMapsDir());
93 Assert.assertEquals(
new File(
"abc"), f3.
getMapsDir());
97 Assert.assertEquals(
new File(
"abc"), f4.
getMapsDir());
101 Assert.assertEquals(
new File(
"abc"), f5.
getMapsDir());
105 Assert.assertEquals(
new File(
"abc"), f6.
getMapsDir());
116 Assert.assertEquals(
new File(
"/abc"), f1.
getFile());
119 Assert.assertEquals(
new File(
"/abc/def/ghi"), f2.
getFile());
static MapPath newMapPath(@NotNull final String string)
Creates a MapPath instance from string representation.
AbsoluteMapPath getMapPath()
Returns the map path within getMapsDir().
void testGetRelativeMapFile1()
Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected...
Regression tests for MapFile.
void testGetRelativeMapFile2()
Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected...
Utility class for MapPath related functions.
MapPath getRelativeMapFileTo(@NotNull final MapFile mapFile)
Returns a map path of an another map file relative to this map file.
void testNew2()
Checks that creating new instances with String) works as expected.
File getMapsDir()
Returns the base directory this map file is part of.
Thrown if two map files are within different map directories.
void testGetFile1()
Checks that creating new instances with MapFile#getFile() works as expected.
File getFile()
Returns a File for this map file.
void testNew1()
Checks that creating new instances with MapFile#MapFile(File) works as expected.
void testNew3()
Checks that creating new instances with MapPath) works as expected.
The location of a map file with a map directory.