use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class ChoiceIntegrationTest method testRoundRobinNoSet.
@Test
public void testRoundRobinNoSet() throws PersistenceLayerException {
verifyCleanStart();
TestContext tc = new TestContext();
emptyCommit(testCampaign, tc);
commit(modCampaign, tc, "DESCRIPTOR|Fear");
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class ChoiceIntegrationTest method testRoundRobinNoReset.
@Test
public void testRoundRobinNoReset() throws PersistenceLayerException {
verifyCleanStart();
TestContext tc = new TestContext();
commit(testCampaign, tc, "DESCRIPTOR|Fear");
emptyCommit(modCampaign, tc);
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class AddLevelIntegrationTest method testRoundRobinSimple.
@Test
public void testRoundRobinSimple() throws PersistenceLayerException {
primaryContext.getReferenceContext().constructCDOMObject(PCClass.class, "Fighter");
secondaryContext.getReferenceContext().constructCDOMObject(PCClass.class, "Fighter");
primaryContext.getReferenceContext().constructCDOMObject(PCClass.class, "Rogue");
secondaryContext.getReferenceContext().constructCDOMObject(PCClass.class, "Rogue");
verifyCleanStart();
TestContext tc = new TestContext();
commit(testCampaign, tc, "Fighter|4");
commit(modCampaign, tc, "Rogue|2");
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class ClassesIntegrationTest method testRoundRobinEmptyCleaMinus.
@Test
public void testRoundRobinEmptyCleaMinus() throws PersistenceLayerException {
verifyCleanStart();
primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
TestContext tc = new TestContext();
emptyCommit(testCampaign, tc);
commit(modCampaign, tc, "Sorcerer=-1");
completeRoundRobin(tc);
}
use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.
the class ClassesIntegrationTest method testRoundRobinClearEmtpyMinus.
@Test
public void testRoundRobinClearEmtpyMinus() throws PersistenceLayerException {
verifyCleanStart();
primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
TestContext tc = new TestContext();
commit(testCampaign, tc, "Sorcerer=-1");
emptyCommit(modCampaign, tc);
completeRoundRobin(tc);
}
Aggregations