![]() |
Gridarta Editor
|
Regression tests for AbstractArchetypeParser. More...
Public Member Functions | |
void | testEmpty () throws IOException |
Checks that an empty archetype can be parsed. More... | |
void | testMissingEnd () throws IOException |
Checks that a missing "end" line is reported. More... | |
void | testMissingObject () throws IOException |
Checks that a missing "object" line is detected. More... | |
void | testMsgTextEmpty () throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly. More... | |
void | testMsgTextLeadingWhitespace () throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly. More... | |
void | testMsgTextLines () throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly. More... | |
void | testMsgTextTrailingWhitespace () throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly. More... | |
void | testMsgTextTruncated () throws IOException |
Checks that msg...endmsg fields are parsed correctly. More... | |
Protected Member Functions | |
ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > | getArchetypeSet () |
AbstractArchetypeParser< TestGameObject, TestMapArchObject, TestArchetype, ? extends AbstractArchetypeBuilder< TestGameObject, TestMapArchObject, TestArchetype > > | newArchetypeParser () |
![]() | |
void | check ( @NotNull final String input, final boolean hasErrors, final boolean hasWarnings, final int archetypes) throws IOException |
Creates a new archetype parser and parses the given input. More... | |
abstract ArchetypeSet< G, A, R > | getArchetypeSet () |
Returns the ArchetypeSet. More... | |
abstract AbstractArchetypeParser< G, A, R, ? extends AbstractArchetypeBuilder< G, A, R > > | newArchetypeParser () |
Creates a new AbstractArchetypeParser instance. More... | |
Private Attributes | |
ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > | archetypeSet |
The loaded archetypes. More... | |
Regression tests for AbstractArchetypeParser.
Definition at line 48 of file ArchetypeParserTest.java.
|
protected |
Definition at line 207 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.ArchetypeParserTest.archetypeSet.
Referenced by net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextEmpty(), net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLeadingWhitespace(), net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLines(), and net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextTrailingWhitespace().
|
protected |
Definition at line 191 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.ArchetypeParserTest.archetypeSet.
void net.sf.gridarta.model.io.ArchetypeParserTest.testEmpty | ( | ) | throws IOException |
Checks that an empty archetype can be parsed.
IOException | if the test fails |
Definition at line 70 of file ArchetypeParserTest.java.
void net.sf.gridarta.model.io.ArchetypeParserTest.testMissingEnd | ( | ) | throws IOException |
Checks that a missing "end" line is reported.
IOException | if the test fails |
Definition at line 82 of file ArchetypeParserTest.java.
void net.sf.gridarta.model.io.ArchetypeParserTest.testMissingObject | ( | ) | throws IOException |
Checks that a missing "object" line is detected.
IOException | if the test fails |
Definition at line 61 of file ArchetypeParserTest.java.
void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextEmpty | ( | ) | throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly.
IOException | if the test fails |
UndefinedArchetypeException | if the test fails |
Definition at line 92 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check(), and net.sf.gridarta.model.io.ArchetypeParserTest.getArchetypeSet().
void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLeadingWhitespace | ( | ) | throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly.
IOException | if the test fails |
UndefinedArchetypeException | if the test fails |
Definition at line 156 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check(), and net.sf.gridarta.model.io.ArchetypeParserTest.getArchetypeSet().
void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLines | ( | ) | throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly.
IOException | if the test fails |
UndefinedArchetypeException | if the test fails |
Definition at line 108 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check(), and net.sf.gridarta.model.io.ArchetypeParserTest.getArchetypeSet().
void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextTrailingWhitespace | ( | ) | throws IOException, UndefinedArchetypeException |
Checks that msg...endmsg fields are parsed correctly.
IOException | if the test fails |
UndefinedArchetypeException | if the test fails |
Definition at line 131 of file ArchetypeParserTest.java.
References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check(), and net.sf.gridarta.model.io.ArchetypeParserTest.getArchetypeSet().
void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextTruncated | ( | ) | throws IOException |
Checks that msg...endmsg fields are parsed correctly.
IOException | if the test fails |
Definition at line 180 of file ArchetypeParserTest.java.
|
private |
The loaded archetypes.
Definition at line 54 of file ArchetypeParserTest.java.
Referenced by net.sf.gridarta.model.io.ArchetypeParserTest.getArchetypeSet(), and net.sf.gridarta.model.io.ArchetypeParserTest.newArchetypeParser().