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