use of pcgen.cdom.list.ClassSpellList in project pcgen by PCGen.
the class ClassesTokenTest method testRoundRobinType.
@Test
public void testRoundRobinType() throws PersistenceLayerException {
assertEquals(0, primaryContext.getWriteMessageCount());
primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Wizard");
ClassSpellList classSpellList = secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Psion");
classSpellList.addType(Type.getConstant("Psionic"));
CDOMGroupRef<ClassSpellList> typeReference = primaryContext.getReferenceContext().getManufacturer(ClassSpellList.class).getTypeReference("Psionic");
typeReference.addResolution(classSpellList);
runRoundRobin("TYPE=Psionic=1[PRERACE:1,Human]");
}
Aggregations