Class PurgeServiceTest
java.lang.Object
org.jumpmind.symmetric.service.impl.PurgeServiceTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jumpmind.symmetric.service.impl.PurgeServiceTest.TestContextgetTestContext(List<Data> datas, List<DataEvent> dataEvents, List<OutgoingBatch> batches) newDataList(int... ids) protected OutgoingBatchnewOutgoingBatch(long batchId, String channelId, AbstractBatch.Status status, boolean isOld) protected voidpopulateContextData(org.jumpmind.symmetric.service.impl.PurgeServiceTest.TestContext context, List<Data> datas) protected voidpopulateContextDataEvent(org.jumpmind.symmetric.service.impl.PurgeServiceTest.TestContext context, List<DataEvent> dataEvents) protected voidpopulateContextOutgoingBatch(org.jumpmind.symmetric.service.impl.PurgeServiceTest.TestContext context, List<OutgoingBatch> batches) voidsetUp()protected voidsetupWhen(List<Data> datas, List<DataEvent> dataEvents, List<OutgoingBatch> batches, long minGapStartId) voidvoidvoidvoidvoidvoidprotected voidverifyPurgeContext(long lastDataId, long lastEventBatchId, long lastBatchId) protected voidverifyPurgeData(long startRangeId, long endRangeId, long startExistsId, long endExistsId) protected voidverifyPurgeDataEvent(long startRangeId, long endRangeId, long startExistsId, long endExistsId) protected voidverifyPurgeOutgoingBatch(long startRangeId, long endRangeId, long startExistsId, long endExistsId)
-
Constructor Details
-
PurgeServiceTest
public PurgeServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testPurgeDelayedChannel
@Test public void testPurgeDelayedChannel() -
testPurgeDelayedChannelAgain
@Test public void testPurgeDelayedChannelAgain() -
testPurgeNewBatchOldDataTwoChannels
@Test public void testPurgeNewBatchOldDataTwoChannels() -
testPurgeNewBatchOldDataOneChannel
@Test public void testPurgeNewBatchOldDataOneChannel() -
testPurgeGapFilledAfterPurgeWindow
@Test public void testPurgeGapFilledAfterPurgeWindow() -
testPurgeAroundSmallGaps
@Test public void testPurgeAroundSmallGaps() -
newDataList
-
newOutgoingBatch
protected OutgoingBatch newOutgoingBatch(long batchId, String channelId, AbstractBatch.Status status, boolean isOld) -
setupWhen
-
getTestContext
-
populateContextData
-
populateContextOutgoingBatch
protected void populateContextOutgoingBatch(org.jumpmind.symmetric.service.impl.PurgeServiceTest.TestContext context, List<OutgoingBatch> batches) -
populateContextDataEvent
-
verifyPurgeData
protected void verifyPurgeData(long startRangeId, long endRangeId, long startExistsId, long endExistsId) -
verifyPurgeDataEvent
protected void verifyPurgeDataEvent(long startRangeId, long endRangeId, long startExistsId, long endExistsId) -
verifyPurgeOutgoingBatch
protected void verifyPurgeOutgoingBatch(long startRangeId, long endRangeId, long startExistsId, long endExistsId) -
verifyPurgeContext
protected void verifyPurgeContext(long lastDataId, long lastEventBatchId, long lastBatchId)
-