net.sf.gridarta.model.io
public class ArchetypeParserTest extends AbstractArchetypeParserTest<TestGameObject,TestMapArchObject,TestArchetype>
AbstractArchetypeParser
.Modifier and Type | Field and Description |
---|---|
private ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> |
archetypeSet
The loaded archetypes.
|
Constructor and Description |
---|
ArchetypeParserTest() |
Modifier and Type | Method and Description |
---|---|
protected ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> |
getArchetypeSet()
Returns the
ArchetypeSet . |
protected AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,? extends AbstractArchetypeBuilder<TestGameObject,TestMapArchObject,TestArchetype>> |
newArchetypeParser()
Creates a new
AbstractArchetypeParser instance. |
void |
testEmpty()
Checks that an empty archetype can be parsed.
|
void |
testMissingEnd()
Checks that a missing "end" line is reported.
|
void |
testMissingObject()
Checks that a missing "object" line is detected.
|
void |
testMsgTextEmpty()
Checks that msg...endmsg fields are parsed correctly.
|
void |
testMsgTextLeadingWhitespace()
Checks that msg...endmsg fields are parsed correctly.
|
void |
testMsgTextLines()
Checks that msg...endmsg fields are parsed correctly.
|
void |
testMsgTextTrailingWhitespace()
Checks that msg...endmsg fields are parsed correctly.
|
void |
testMsgTextTruncated()
Checks that msg...endmsg fields are parsed correctly.
|
check
@Nullable private ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet
public ArchetypeParserTest()
public void testMissingObject() throws IOException
IOException
- if the test failspublic void testEmpty() throws IOException
IOException
- if the test failspublic void testMissingEnd() throws IOException
IOException
- if the test failspublic void testMsgTextEmpty() throws IOException, UndefinedArchetypeException
IOException
- if the test failsUndefinedArchetypeException
- if the test failspublic void testMsgTextLines() throws IOException, UndefinedArchetypeException
IOException
- if the test failsUndefinedArchetypeException
- if the test failspublic void testMsgTextTrailingWhitespace() throws IOException, UndefinedArchetypeException
IOException
- if the test failsUndefinedArchetypeException
- if the test failspublic void testMsgTextLeadingWhitespace() throws IOException, UndefinedArchetypeException
IOException
- if the test failsUndefinedArchetypeException
- if the test failspublic void testMsgTextTruncated() throws IOException
IOException
- if the test fails@NotNull protected AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,? extends AbstractArchetypeBuilder<TestGameObject,TestMapArchObject,TestArchetype>> newArchetypeParser()
AbstractArchetypeParser
instance.newArchetypeParser
in class AbstractArchetypeParserTest<TestGameObject,TestMapArchObject,TestArchetype>
@NotNull protected ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> getArchetypeSet()
ArchetypeSet
.getArchetypeSet
in class AbstractArchetypeParserTest<TestGameObject,TestMapArchObject,TestArchetype>
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.