 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.crossfire.model.io;
22 import java.io.BufferedReader;
23 import java.io.IOException;
24 import java.io.StringReader;
26 import org.junit.Assert;
27 import org.junit.Test;
38 @SuppressWarnings(
"IOResourceOpenedButNotSafelyClosed")
42 final BufferedReader reader =
new BufferedReader(
new StringReader(
"arch map\nfirst_load 1234\nend\n"));
44 parser.load(reader, mapArchObject);
52 @SuppressWarnings(
"IOResourceOpenedButNotSafelyClosed")
56 final BufferedReader reader =
new BufferedReader(
new StringReader(
"arch map\nreset_group xyz\nend\n"));
58 parser.load(reader, mapArchObject);
66 @SuppressWarnings(
"IOResourceOpenedButNotSafelyClosed")
70 final BufferedReader reader =
new BufferedReader(
new StringReader(
"arch map\nend\n"));
72 parser.load(reader, mapArchObject);
String getResetGroup()
Returns the reset group.
Base package of all Gridarta classes.
void testLoadFirstLoad()
Checks that the "first_load" attribute can be parsed.
void testLoadResetGroup1()
Checks that the "reset_group" attribute can be parsed.
Interface for classes that read or write MapArchObject instances.
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
void testLoadResetGroup2()
Checks that the "reset_group" attribute can be parsed.
Main package of Gridarta4Crossfire, contains all classes specific to the Crossfire version of the Gri...
Regression tests for MapArchObjectParser.
Reading and writing of maps, handling of paths.
A net.sf.gridarta.model.io.MapArchObjectParser for Crossfire map arch object instances.
int getFirstLoad()
Returns the timestamp the Crossfire server has loaded this map.