Search in sources :

Example 81 with TestContext

use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.

the class FollowersIntegrationTest method testRoundRobinRemove.

@Test
public void testRoundRobinRemove() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(CompanionList.class, "Follower");
    secondaryContext.getReferenceContext().constructCDOMObject(CompanionList.class, "Follower");
    primaryContext.getReferenceContext().constructCDOMObject(CompanionList.class, "Pet");
    secondaryContext.getReferenceContext().constructCDOMObject(CompanionList.class, "Pet");
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "Follower|4+1");
    commit(modCampaign, tc, "Pet|PetForm");
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 82 with TestContext

use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.

the class ClassesIntegrationTest method testRoundRobinAll.

@Test
public void testRoundRobinAll() throws PersistenceLayerException {
    verifyCleanStart();
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "ALL=2");
    emptyCommit(modCampaign, tc);
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 83 with TestContext

use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.

the class ClassesIntegrationTest method testRoundRobinAllSupplementMinus.

@Test
public void testRoundRobinAllSupplementMinus() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
    secondaryContext.getReferenceContext().constructCDOMObject(ClassSpellList.class, "Sorcerer");
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "Sorcerer=-1");
    commit(modCampaign, tc, "Sorcerer=1");
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 84 with TestContext

use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.

the class CostIntegrationTest method testRoundRobinDotClear.

@Test
public void testRoundRobinDotClear() throws PersistenceLayerException {
    verifyCleanStart();
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "3.14");
    commit(modCampaign, tc, Constants.LST_DOT_CLEAR);
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 85 with TestContext

use of plugin.lsttokens.editcontext.testsupport.TestContext in project pcgen by PCGen.

the class CostIntegrationTest method testRoundRobinNoReset.

@Test
public void testRoundRobinNoReset() throws PersistenceLayerException {
    verifyCleanStart();
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "2");
    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