![]() |
Gridarta Editor
|
Regression tests for PluginParameterCodec. More...
Public Member Functions | |
void | testArchetypeFromXml1 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a ArchetypeParameter is correctly decoded. More... | |
void | testArchetypeFromXml2 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an ArchetypeParameter is correctly decoded. More... | |
void | testArchetypeFromXml3 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an ArchetypeParameter is correctly decoded. More... | |
void | testArchetypeToXml1 () throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded. More... | |
void | testArchetypeToXml2 () throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded. More... | |
void | testArchetypeToXml3 () throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded. More... | |
void | testBooleanFromXml1 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a BooleanParameter is correctly decoded. More... | |
void | testBooleanFromXml2 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a BooleanParameter is correctly decoded. More... | |
void | testBooleanToXml1 () throws IOException |
Checks that a BooleanParameter instance is correctly encoded. More... | |
void | testBooleanToXml2 () throws IOException |
Checks that a BooleanParameter instance is correctly encoded. More... | |
void | testDoubleFromXml1 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a DoubleParameter is correctly decoded. More... | |
void | testDoubleFromXml2 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a DoubleParameter is correctly decoded. More... | |
void | testDoubleToXml1 () throws IOException |
Checks that a DoubleParameter instance is correctly encoded. More... | |
void | testDoubleToXml2 () throws IOException |
Checks that a DoubleParameter instance is correctly encoded. More... | |
void | testIntegerFromXml1 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an IntegerParameter is correctly decoded. More... | |
void | testIntegerFromXml2 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an IntegerParameter is correctly decoded. More... | |
void | testIntegerToXml1 () throws IOException |
Checks that an IntegerParameter instance is correctly encoded. More... | |
void | testIntegerToXml2 () throws IOException |
Checks that an IntegerParameter instance is correctly encoded. More... | |
void | testMapFromXml1 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a MapParameter is correctly decoded. More... | |
void | testMapFromXml3 () throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a MapParameter is correctly decoded. More... | |
void | testMapPathToXml1 () throws IOException |
Checks that a MapPathParameter instance is correctly encoded. More... | |
void | testMapPathToXml2 () throws IOException |
Checks that a MapPathParameter instance is correctly encoded. More... | |
void | testMapToXml1 () throws IOException |
Checks that a MapParameter instance is correctly encoded. More... | |
void | testMapToXml2 () throws IOException |
Checks that a MapParameter instance is correctly encoded. More... | |
void | testMapToXml3 () throws IOException |
Checks that a MapParameter instance is correctly encoded. More... | |
void | testStringToXml1 () throws IOException |
Checks that a StringParameter instance is correctly encoded. More... | |
void | testStringToXml2 () throws IOException |
Checks that a StringParameter instance is correctly encoded. More... | |
Static Private Member Functions | |
static PluginParameter< TestGameObject, TestMapArchObject, TestArchetype, ?> | fromXML (@NotNull final TestMapControlCreator mapControlCreator, @NotNull final String string) throws IOException, NoSuchParameterException, ParsingException, SAXException |
Decodes a PluginParameter from its string representation. More... | |
static String | toXML (@NotNull final PluginParameter< TestGameObject, TestMapArchObject, TestArchetype, ?> parameter) throws IOException |
Encodes a PluginParameter to its string representation. More... | |
Regression tests for PluginParameterCodec.
Definition at line 55 of file PluginParameterCodecTest.java.
|
staticprivate |
Decodes a PluginParameter from its string representation.
mapControlCreator | the map control creator to use |
string | the string representation |
IOException | if decoding fails |
NoSuchParameterException | if decoding fails |
ParsingException | if decoding fails |
SAXException | if decoding fails |
Definition at line 755 of file PluginParameterCodecTest.java.
Referenced by net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml3(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanFromXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanFromXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleFromXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleFromXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerFromXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerFromXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapFromXml1(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapFromXml3().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml1 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a ArchetypeParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 406 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml2 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an ArchetypeParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 433 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeFromXml3 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an ArchetypeParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 460 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetype(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapModelCreator(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml1 | ( | ) | throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 62 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetypeSet(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml2 | ( | ) | throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 81 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetypeSet(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml3 | ( | ) | throws IOException |
Checks that an ArchetypeParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 101 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetype(), net.sf.gridarta.model.archetype.Archetype< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getArchetypeName(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.getArchetypeSet(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanFromXml1 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a BooleanParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 488 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFalseText(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getTrueText(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanFromXml2 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a BooleanParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 519 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFalseText(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getTrueText(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanToXml1 | ( | ) | throws IOException |
Checks that a BooleanParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 122 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanToXml2 | ( | ) | throws IOException |
Checks that a BooleanParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 144 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setFalseText(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setStringValue(), net.sf.gridarta.plugin.parameter.BooleanParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setTrueText(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleFromXml1 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a DoubleParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 550 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMax(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMin(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleFromXml2 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a DoubleParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 581 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMax(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMin(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleToXml1 | ( | ) | throws IOException |
Checks that a DoubleParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 167 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleToXml2 | ( | ) | throws IOException |
Checks that a DoubleParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 189 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMax(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMin(), net.sf.gridarta.plugin.parameter.DoubleParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerFromXml1 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an IntegerParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 612 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMax(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMin(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerFromXml2 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that an IntegerParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 643 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMax(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMin(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerToXml1 | ( | ) | throws IOException |
Checks that an IntegerParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 212 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerToXml2 | ( | ) | throws IOException |
Checks that an IntegerParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 234 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMax(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMin(), net.sf.gridarta.plugin.parameter.IntegerParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapFromXml1 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a MapParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 674 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), and net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getValueOrNull().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapFromXml3 | ( | ) | throws IOException, NoSuchParameterException, ParsingException, SAXException |
Checks that a MapParameter is correctly decoded.
IOException | if the test fails |
NoSuchParameterException | if the test fails |
ParsingException | if the test fails |
SAXException | if the test fails |
Definition at line 702 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.fromXML(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getDescription(), net.sf.gridarta.model.io.PathManager.getMapFile(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapFile(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.model.mapmodel.MapFile.getMapPath(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getName(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.getParameterType(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.plugin.parameter.MapParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getValueOrNull(), and net.sf.gridarta.model.mapmodel.AbsoluteMapPath.toString().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapPathToXml1 | ( | ) | throws IOException |
Checks that a MapPathParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 321 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapPathToXml2 | ( | ) | throws IOException |
Checks that a MapPathParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 343 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml1 | ( | ) | throws IOException |
Checks that a MapParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 257 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml2 | ( | ) | throws IOException |
Checks that a MapParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 278 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.plugin.parameter.MapParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setValueToCurrent(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml3 | ( | ) | throws IOException |
Checks that a MapParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 298 of file PluginParameterCodecTest.java.
References net.sf.gridarta.model.io.PathManager.getMapFile(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getMapManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.getPathManager(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testStringToXml1 | ( | ) | throws IOException |
Checks that a StringParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 364 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setDescription(), net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setName(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
void net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testStringToXml2 | ( | ) | throws IOException |
Checks that a StringParameter instance is correctly encoded.
IOException | if the test fails |
Definition at line 384 of file PluginParameterCodecTest.java.
References net.sf.gridarta.plugin.parameter.PluginParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, V >.setStringValue(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.toXML().
|
staticprivate |
Encodes a PluginParameter to its string representation.
parameter | the plugin parameter |
IOException | if the conversion fails |
Definition at line 734 of file PluginParameterCodecTest.java.
Referenced by net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testArchetypeToXml3(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testBooleanToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testDoubleToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testIntegerToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapPathToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapPathToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml1(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml2(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapToXml3(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testStringToXml1(), and net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testStringToXml2().