use of tokenmodel.testsupport.NoAssociations in project pcgen by PCGen.
the class AddAbilityNormalTest method finishLoad.
@Override
protected void finishLoad() {
super.finishLoad();
assocCheck = new NoAssociations(pc);
}
use of tokenmodel.testsupport.NoAssociations in project pcgen by PCGen.
the class AbilityDepthTest method runTest.
@Override
protected void runTest() throws Throwable {
Ability top = createAbility("TopAbility");
Ability mid = createAbility("MidAbility");
Ability target = createAbility("TargetAbility");
ParseResult result = firstToken.parseToken(context, top, firstPrefix + mid.getKeyName());
if (!result.passed()) {
result.printMessages();
fail();
}
result = secondToken.parseToken(context, mid, secondPrefix + target.getKeyName());
if (!result.passed()) {
result.printMessages();
fail();
}
finishLoad();
assocCheck = new NoAssociations(pc);
CNAbilitySelection cas = new CNAbilitySelection(CNAbilityFactory.getCNAbility(AbilityCategory.FEAT, Nature.AUTOMATIC, top));
assertEquals(0, getCount());
pc.addAbility(cas, "This", "That");
// directAbilityFacet.add(id, cas, UserSelection.getInstance());
assertTrue(containsExpected(mid));
assertTrue(containsExpected(target));
assertEquals(3, getCount());
pc.removeAbility(cas, "This", "That");
// directAbilityFacet.remove(id, cas, UserSelection.getInstance());
assertEquals(0, getCount());
}
use of tokenmodel.testsupport.NoAssociations in project pcgen by PCGen.
the class AddAbilityVirtualTest method finishLoad.
@Override
protected void finishLoad() {
super.finishLoad();
assocCheck = new NoAssociations(pc);
}
Aggregations