 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.maparchobject;
22 import java.io.BufferedReader;
24 import java.io.IOException;
25 import java.io.StringReader;
31 import org.junit.Assert;
32 import org.junit.Test;
37 @SuppressWarnings(
"JavaDoc")
64 @SuppressWarnings(
"IOResourceOpenedButNotSafelyClosed")
68 final BufferedReader reader =
new BufferedReader(
new StringReader(
"arch map\nname \nend\n"));
70 parser.
load(reader, mapArchObject);
71 Assert.assertEquals(
"", mapArchObject.
getMapName());
void load(@NotNull BufferedReader reader, @NotNull A mapArchObject)
Parse a map arch object from a stream.
Base package of all Gridarta classes.
void calculateTilePath_noCurrentPath_returnsEmptyPath()
void calculateTilePath_withCoordinates_returnsPath()
A MapArchObjectParser for regression tests.
static MapPath newMapPath(@NotNull final String string)
Creates a MapPath instance from string representation.
Utility class for MapPath related functions.
Interface for classes that read or write MapArchObject instances.
void calculateTilePath_noCoordinates1_returnsEmptyPath()
The location of a map file with a map directory.
Reading and writing of maps, handling of paths.
A MapArchObject implementation for testing purposes.
void testLoadEmptyName1()
Checks that an empty "name" attribute can be parsed.
Regression tests for AbstractMapArchObject.
void calculateTilePath_noCoordinates2_returnsEmptyPath()