use of pcgen.cdom.processor.ChangeArmorType in project pcgen by PCGen.
the class ArmortypeTokenTest method testUnparseSingle.
@Test
public void testUnparseSingle() throws PersistenceLayerException {
primaryProf.addToListFor(ListKey.ARMORTYPE, new ChangeArmorType("Light", "Medium"));
String[] unparsed = getToken().unparse(primaryContext, primaryProf);
expectSingle(unparsed, "Light|Medium");
}
use of pcgen.cdom.processor.ChangeArmorType in project pcgen by PCGen.
the class ArmortypeTokenTest method testUnparseNullSource.
@Test
public void testUnparseNullSource() throws PersistenceLayerException {
try {
primaryProf.addToListFor(ListKey.ARMORTYPE, new ChangeArmorType(null, "Medium"));
assertBadUnparse();
} catch (IllegalArgumentException e) {
// Good here too :)
}
}
Aggregations