use of plugin.pretokens.parser.PreClassParser in project pcgen by PCGen.
the class AbstractTextPropertyIntegrationTestCase method localClassSetUp.
public final void localClassSetUp() throws PersistenceLayerException {
TokenRegistration.register(new PreLevelParser());
TokenRegistration.register(new PreClassParser());
TokenRegistration.register(new PreLevelWriter());
TokenRegistration.register(new PreClassWriter());
setClassSetUpFired(true);
}
use of plugin.pretokens.parser.PreClassParser in project pcgen by PCGen.
the class PreClassLevelMaxRobin method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
TokenRegistration.register(new PreClassLevelMaxParser());
TokenRegistration.register(new PreClassParser());
TokenRegistration.register(new PreClassWriter());
}
use of plugin.pretokens.parser.PreClassParser in project pcgen by PCGen.
the class PreClassRoundRobin method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
TokenRegistration.register(new PreClassParser());
TokenRegistration.register(new PreClassWriter());
}
use of plugin.pretokens.parser.PreClassParser in project pcgen by PCGen.
the class PreClassTest method testInvalidNegate.
/**
* Test that an error is produced if separators are incorrect
* @throws Exception
*/
@Test
public void testInvalidNegate() throws Exception {
try {
PreClassParser parser = new PreClassParser();
Prerequisite prereq = parser.parse("class", "1,Monk=1[Cleric=1]", false, false);
fail("Should have thrown a PersistenceLayerException.");
} catch (PersistenceLayerException e) {
// Ignore, this is the expected result.
}
}
use of plugin.pretokens.parser.PreClassParser in project pcgen by PCGen.
the class PreClassTest method testInvalidCharacter.
/**
* Test that an error is produced if separators are incorrect
* @throws Exception
*/
@Test
public void testInvalidCharacter() throws Exception {
try {
PreClassParser parser = new PreClassParser();
Prerequisite prereq = parser.parse("class", "1,Monk=1|Cleric=1", false, false);
fail("Should have thrown a PersistenceLayerException.");
} catch (PersistenceLayerException e) {
// Ignore, this is the expected result.
}
}
Aggregations