Gridarta Editor
net.sf.gridarta.model.io.ArchetypeParserTest Class Reference

Regression tests for AbstractArchetypeParser. More...

+ Inheritance diagram for net.sf.gridarta.model.io.ArchetypeParserTest:
+ Collaboration diagram for net.sf.gridarta.model.io.ArchetypeParserTest:

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, TestArchetypegetArchetypeSet ()
 
AbstractArchetypeParser< TestGameObject, TestMapArchObject, TestArchetype, ? extends AbstractArchetypeBuilder< TestGameObject, TestMapArchObject, TestArchetype > > newArchetypeParser ()
 
- Protected Member Functions inherited from net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >
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, TestArchetypearchetypeSet
 The loaded archetypes. More...
 

Detailed Description

Regression tests for AbstractArchetypeParser.

Author
Andreas Kirschbaum

Definition at line 48 of file ArchetypeParserTest.java.

Member Function Documentation

◆ getArchetypeSet()

◆ newArchetypeParser()

AbstractArchetypeParser<TestGameObject, TestMapArchObject, TestArchetype, ? extends AbstractArchetypeBuilder<TestGameObject, TestMapArchObject, TestArchetype> > net.sf.gridarta.model.io.ArchetypeParserTest.newArchetypeParser ( )
protected

◆ testEmpty()

void net.sf.gridarta.model.io.ArchetypeParserTest.testEmpty ( ) throws IOException

Checks that an empty archetype can be parsed.

Exceptions
IOExceptionif the test fails

Definition at line 70 of file ArchetypeParserTest.java.

References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check().

+ Here is the call graph for this function:

◆ testMissingEnd()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMissingEnd ( ) throws IOException

Checks that a missing "end" line is reported.

Exceptions
IOExceptionif the test fails

Definition at line 82 of file ArchetypeParserTest.java.

References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check().

+ Here is the call graph for this function:

◆ testMissingObject()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMissingObject ( ) throws IOException

Checks that a missing "object" line is detected.

Exceptions
IOExceptionif the test fails

Definition at line 61 of file ArchetypeParserTest.java.

References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check().

+ Here is the call graph for this function:

◆ testMsgTextEmpty()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextEmpty ( ) throws IOException, UndefinedArchetypeException

Checks that msg...endmsg fields are parsed correctly.

Exceptions
IOExceptionif the test fails
UndefinedArchetypeExceptionif 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().

+ Here is the call graph for this function:

◆ testMsgTextLeadingWhitespace()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLeadingWhitespace ( ) throws IOException, UndefinedArchetypeException

Checks that msg...endmsg fields are parsed correctly.

Exceptions
IOExceptionif the test fails
UndefinedArchetypeExceptionif 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().

+ Here is the call graph for this function:

◆ testMsgTextLines()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextLines ( ) throws IOException, UndefinedArchetypeException

Checks that msg...endmsg fields are parsed correctly.

Exceptions
IOExceptionif the test fails
UndefinedArchetypeExceptionif 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().

+ Here is the call graph for this function:

◆ testMsgTextTrailingWhitespace()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextTrailingWhitespace ( ) throws IOException, UndefinedArchetypeException

Checks that msg...endmsg fields are parsed correctly.

Exceptions
IOExceptionif the test fails
UndefinedArchetypeExceptionif 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().

+ Here is the call graph for this function:

◆ testMsgTextTruncated()

void net.sf.gridarta.model.io.ArchetypeParserTest.testMsgTextTruncated ( ) throws IOException

Checks that msg...endmsg fields are parsed correctly.

Exceptions
IOExceptionif the test fails

Definition at line 180 of file ArchetypeParserTest.java.

References net.sf.gridarta.model.io.AbstractArchetypeParserTest< TestGameObject, TestMapArchObject, TestArchetype >.check().

+ Here is the call graph for this function:

Member Data Documentation

◆ archetypeSet

ArchetypeSet<TestGameObject, TestMapArchObject, TestArchetype> net.sf.gridarta.model.io.ArchetypeParserTest.archetypeSet
private

The documentation for this class was generated from the following file: