use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class NameoptIntegrationTest method testRoundRobinSimple.
@Test
public void testRoundRobinSimple() throws PersistenceLayerException {
verifyCleanStart();
TestContext tc = new TestContext();
commit(testCampaign, tc, "NORMAL");
commit(modCampaign, tc, "TEXT=This Text");
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class PreIntegrationTest method testRoundRobinNoSet.
@Test
public void testRoundRobinNoSet() throws PersistenceLayerException {
verifyCleanStart();
TestContext tc = new TestContext();
emptyCommit(testCampaign, tc);
commit(modCampaign, tc, Constants.LST_DOT_CLEAR);
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class QualifyIntegrationTest method testRoundRobinNoReset.
@Test
public void testRoundRobinNoReset() throws PersistenceLayerException {
verifyCleanStart();
AbilityCategory pac = primaryContext.getReferenceContext().constructCDOMObject(AbilityCategory.class, "NEWCAT");
AbilityCategory sac = secondaryContext.getReferenceContext().constructCDOMObject(AbilityCategory.class, "NEWCAT");
Ability ab = primaryContext.getReferenceContext().constructCDOMObject(Ability.class, "Abil3");
primaryContext.getReferenceContext().reassociateCategory(pac, ab);
ab = secondaryContext.getReferenceContext().constructCDOMObject(Ability.class, "Abil3");
secondaryContext.getReferenceContext().reassociateCategory(sac, ab);
TestContext tc = new TestContext();
commit(testCampaign, tc, "ABILITY=NEWCAT|Abil3");
emptyCommit(modCampaign, tc);
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class QualifyIntegrationTest method testRoundRobinRemove.
@Test
public void testRoundRobinRemove() throws PersistenceLayerException {
verifyCleanStart();
primaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Fireball");
secondaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Fireball");
primaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Lightning Bolt");
secondaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Lightning Bolt");
TestContext tc = new TestContext();
commit(testCampaign, tc, "SPELL|Lightning Bolt");
commit(modCampaign, tc, "SPELL|Fireball");
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class SpellKnownIntegrationTest method testRoundRobinSimple.
@Test
public void testRoundRobinSimple() throws PersistenceLayerException {
primaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Fireball");
secondaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Fireball");
primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Cleric");
secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Cleric");
primaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Bless");
secondaryContext.getReferenceContext().constructCDOMObject(Spell.class, "Bless");
primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Wizard");
secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Wizard");
verifyCleanStart();
TestContext tc = new TestContext();
commit(testCampaign, tc, "CLASS|Wizard=3|Bless");
commit(modCampaign, tc, "CLASS|Cleric=2|Fireball|PRECLASS:1,Fighter=2");
completeRoundRobin(tc);
}
Aggregations