@Test public void testRoundRobinClear() throws PersistenceLayerException { if (isClearLegal()) { if (requiresPreconstruction()) { getConstant("Languedoc-Roussillon"); } verifyCleanStart(); TestContext tc = new TestContext(); commit(testCampaign, tc, "Languedoc-Roussillon"); commit(testCampaign, tc, Constants.LST_DOT_CLEAR); tc = new TestContext(); tc.putText(testCampaign.getURI(), null); completeRoundRobin(tc); } }
@Test public void testRoundRobinAppend() throws PersistenceLayerException { if (requiresPreconstruction()) { getConstant("Languedoc-Roussillon"); getConstant("Finger Lakes"); } verifyCleanStart(); TestContext tc = new TestContext(); commit(testCampaign, tc, "Languedoc-Roussillon"); commit(testCampaign, tc, "Finger Lakes"); tc = new TestContext(); tc.putText( testCampaign.getURI(), new String[] {"Languedoc-Roussillon" + getJoinCharacter() + "Finger Lakes"}); completeRoundRobin(tc); }
@Test public void testRoundRobinMerge() throws PersistenceLayerException { if (isMerge()) { construct(primaryContext, "TestWP1"); construct(primaryContext, "TestWP2"); construct(secondaryContext, "TestWP1"); construct(secondaryContext, "TestWP2"); verifyCleanStart(); TestContext tc = new TestContext(); commit(testCampaign, tc, getPrefix() + "TestWP1"); commit(testCampaign, tc, getPrefix() + "TestWP2"); tc = new TestContext(); tc.putText( testCampaign.getURI(), new String[] {getPrefix() + "TestWP1" + getJoinCharacter() + "TestWP2"}); completeRoundRobin(tc); } }