Search in sources :

Example 36 with TestContext

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

Example 37 with TestContext

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

Example 38 with TestContext

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

Example 39 with TestContext

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

Example 40 with TestContext

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);
}
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