use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.
the class TemplateFavoredClassTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
fcFacet = FacetLibrary.getFacet(FavoredClassFacet.class);
context.getReferenceContext().constructCDOMObject(PCClass.class, "Favorite");
TokenRegistration.register(CHOOSE_CLASS_TOKEN);
ChooserFactory.setDelegate(new MockUIDelegate());
}
use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.
the class SpellDomainsTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
sp = context.getReferenceContext().constructCDOMObject(Spell.class, "MySpell");
dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
domain = create(Domain.class, "Source");
ChooserFactory.setDelegate(new MockUIDelegate());
}
use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.
the class RaceMonCSkillTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
mcsFacet = FacetLibrary.getFacet(MonsterCSkillFacet.class);
lscFacet = FacetLibrary.getFacet(ListSkillCostFacet.class);
sk = context.getReferenceContext().constructCDOMObject(Skill.class, "MySkill");
dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
new HdToken().parseToken(context, dragon, "8");
new IsmonsterToken().parseToken(context, dragon, "YES");
TokenRegistration.register(CHOOSE_SKILL_TOKEN);
ChooserFactory.setDelegate(new MockUIDelegate());
}
use of pcgen.gui2.facade.MockUIDelegate in project pcgen by PCGen.
the class SkillClassesTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
sk = context.getReferenceContext().constructCDOMObject(Skill.class, "MySkill");
dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
ChooserFactory.setDelegate(new MockUIDelegate());
}
Aggregations