use of pcgen.core.SpellProhibitor in project pcgen by PCGen.
the class ChoiceTokenTest method getConstant.
private static SpellProhibitor getConstant(ProhibitedSpellType type, String args) {
SpellProhibitor spellProb = new SpellProhibitor();
spellProb.setType(type);
spellProb.addValue(args);
return spellProb;
}
use of pcgen.core.SpellProhibitor in project pcgen by PCGen.
the class ChoiceTokenTest method testUnparseLegalSchool.
@Test
public void testUnparseLegalSchool() throws PersistenceLayerException {
SpellProhibitor o = getConstant(ProhibitedSpellType.SCHOOL, "Public");
primaryProf.put(getObjectKey(), o);
expectSingle(getToken().unparse(primaryContext, primaryProf), "SCHOOL|Public");
}
Aggregations