use of plugin.pretokens.parser.PreAbilityParser in project pcgen by PCGen.
the class PreAbilityParserTest method testTwoCategories.
/**
* Test that an error is produced if two categories are specified.
* @throws Exception
*/
@Test
public void testTwoCategories() throws Exception {
try {
PreAbilityParser parser = new PreAbilityParser();
Prerequisite prereq = parser.parse("ability", "1,CATEGORY.Mutation,KEY_a,CATEGORY.Foo", false, false);
fail("Should have thrown a PersistenceLayerException.");
} catch (PersistenceLayerException e) {
// Ignore, this is the expected result.
}
}
use of plugin.pretokens.parser.PreAbilityParser in project pcgen by PCGen.
the class PreAbilityRoundRobin method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
TokenRegistration.register(new PreAbilityParser());
TokenRegistration.register(new PreAbilityWriter());
}
Aggregations