Search in sources :

Example 96 with TestContext

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);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 97 with TestContext

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);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 98 with TestContext

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);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 99 with TestContext

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);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 100 with TestContext

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);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Aggregations

TestContext (plugin.lsttokens.editcontext.testsupport.TestContext)508 Test (org.junit.Test)507 Ability (pcgen.core.Ability)13 PCClassLevel (pcgen.cdom.inst.PCClassLevel)3 AbilityCategory (pcgen.core.AbilityCategory)2 SubClassCategory (pcgen.cdom.enumeration.SubClassCategory)1 SubClass (pcgen.core.SubClass)1