Search in sources :

Example 46 with TestContext

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

the class ChangeProfIntegrationTest method testRoundRobinNoReset.

@Test
public void testRoundRobinNoReset() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "Hammer=Martial|Pipe=Exotic");
    emptyCommit(modCampaign, tc);
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 47 with TestContext

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

the class ChangeProfIntegrationTest method testRoundRobinNoSet.

@Test
public void testRoundRobinNoSet() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    TestContext tc = new TestContext();
    emptyCommit(testCampaign, tc);
    commit(modCampaign, tc, "Hammer=Martial|Pipe=Exotic");
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 48 with TestContext

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

the class ChangeProfIntegrationTest method testRoundRobinSimple.

@Test
public void testRoundRobinSimple() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "Hammer=Martial");
    commit(modCampaign, tc, "Hammer,Pipe=Martial");
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 49 with TestContext

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

the class ChangeProfIntegrationTest method testRoundRobinRemove.

@Test
public void testRoundRobinRemove() throws PersistenceLayerException {
    verifyCleanStart();
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Hammer");
    primaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    secondaryContext.getReferenceContext().constructCDOMObject(WeaponProf.class, "Pipe");
    TestContext tc = new TestContext();
    commit(testCampaign, tc, "Hammer,TYPE.Heavy=Martial");
    commit(modCampaign, tc, "Hammer=Martial|Pipe=Exotic");
    completeRoundRobin(tc);
}
Also used : TestContext(plugin.lsttokens.editcontext.testsupport.TestContext) Test(org.junit.Test)

Example 50 with TestContext

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

the class CompanionListIntegrationTest method testRoundRobinDiffAdjustment.

@Test
public void testRoundRobinDiffAdjustment() throws PersistenceLayerException {
    construct(primaryContext, "TestWP2");
    construct(secondaryContext, "TestWP2");
    verifyCleanStart();
    TestContext tc = new TestContext();
    commit(testCampaign, tc, getPrefix() + "RACETYPE=Align|FOLLOWERADJUSTMENT:-2");
    commit(modCampaign, tc, getPrefix() + "RACETYPE=Alien|FOLLOWERADJUSTMENT:-5");
    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