Search in sources :

Example 21 with SubClass

use of pcgen.core.SubClass in project pcgen by PCGen.

the class FavoredClassTokenTest method testRoundRobinThreeSub.

@Test
public void testRoundRobinThreeSub() throws PersistenceLayerException {
    construct(primaryContext, "TestWP1");
    construct(primaryContext, "TestWP2");
    construct(primaryContext, "TestWP3");
    construct(secondaryContext, "TestWP1");
    construct(secondaryContext, "TestWP2");
    construct(secondaryContext, "TestWP3");
    SubClass obj = primaryContext.getReferenceContext().constructCDOMObject(SubClass.class, "Sub");
    SubClassCategory cat = SubClassCategory.getConstant("TestWP2");
    primaryContext.getReferenceContext().reassociateCategory(cat, obj);
    obj = secondaryContext.getReferenceContext().constructCDOMObject(SubClass.class, "Sub");
    secondaryContext.getReferenceContext().reassociateCategory(cat, obj);
    runRoundRobin("TestWP1" + getJoinCharacter() + "TestWP2.Sub" + getJoinCharacter() + "TestWP3");
}
Also used : SubClass(pcgen.core.SubClass) SubClassCategory(pcgen.cdom.enumeration.SubClassCategory) Test(org.junit.Test)

Aggregations

SubClass (pcgen.core.SubClass)21 SubClassCategory (pcgen.cdom.enumeration.SubClassCategory)11 Test (org.junit.Test)9 PCClass (pcgen.core.PCClass)8 ArrayList (java.util.ArrayList)3 ClassSkillList (pcgen.cdom.list.ClassSkillList)3 SubstitutionClass (pcgen.core.SubstitutionClass)3 StringTokenizer (java.util.StringTokenizer)2 SpellProhibitor (pcgen.core.SpellProhibitor)2 CDOMObject (pcgen.cdom.base.CDOMObject)1 CDOMReference (pcgen.cdom.base.CDOMReference)1 HitDie (pcgen.cdom.content.HitDie)1 PCClassLevel (pcgen.cdom.inst.PCClassLevel)1 ClassSpellList (pcgen.cdom.list.ClassSpellList)1 DomainSpellList (pcgen.cdom.list.DomainSpellList)1 CategorizedCDOMReference (pcgen.cdom.reference.CategorizedCDOMReference)1 Domain (pcgen.core.Domain)1 PCTemplate (pcgen.core.PCTemplate)1 CDOMChooserFacadeImpl (pcgen.core.chooser.CDOMChooserFacadeImpl)1 PCLevelInfo (pcgen.core.pclevelinfo.PCLevelInfo)1