 |
Gridarta Editor
|
Go to the documentation of this file.
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());
MapPath getRelativeMapFileTo(@NotNull final MapFile mapFile)
Returns a map path of an another map file relative to this map file.
Thrown if two map files are within different map directories.
void testNew3()
Checks that creating new instances with MapPath) works as expected.
static MapPath newMapPath(@NotNull final String string)
Creates a MapPath instance from string representation.
Utility class for MapPath related functions.
AbsoluteMapPath getMapPath()
Returns the map path within getMapsDir().
Regression tests for MapFile.
void testGetFile1()
Checks that creating new instances with MapFile#getFile() works as expected.
void testGetRelativeMapFile2()
Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected.
File getMapsDir()
Returns the base directory this map file is part of.
void testNew1()
Checks that creating new instances with MapFile#MapFile(File) works as expected.
File getFile()
Returns a File for this map file.
The location of a map file with a map directory.
void testNew2()
Checks that creating new instances with String) works as expected.
void testGetRelativeMapFile1()
Checks that creating new instances with MapFile#getRelativeMapFileTo(MapFile) works as expected.