Class AbstractRouterServiceTest
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractServiceTest
org.jumpmind.symmetric.service.impl.AbstractRouterServiceTest
- Direct Known Subclasses:
JdbcRouterServiceTest
-
Field Summary
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractServiceTest
engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcountBatchesForChannel(OutgoingBatches batches, NodeChannel channel) protected intprotected voidprotected voidprotected voidfilterForChannels(OutgoingBatches batches, NodeChannel... channels) protected TriggerRoutergetTestRoutingTableTrigger(String tableName) protected voidprotected voidprotected voidinsert(String tableName, int count, boolean transactional, String node2disable, String routingVarcharFieldValue) protected voidinsert(String tableName, int count, boolean transactional, String node2disable, String routingVarcharFieldValue, boolean rollback) protected voidinsertGaps(int insertedCount, int rollbackCount, int repeatCount) protected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidMethods inherited from class org.jumpmind.symmetric.service.impl.AbstractServiceTest
assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNull, assertNull, assertNumberOfLinesThatStartWith, assertNumberOfLinesThatStartWith, assertNumberOfRows, assertTrue, assertTrue, checkForOpenResources, countData, forceRebuildOfTrigers, formatTableName, getClusterService, getConfigurationService, getDataExtractorService, getDataService, getDbDialect, getIncomingBatchService, getNodeService, getOutgoingBatchService, getParameterService, getPlatform, getRegistrationService, getRouterService, getSqlTemplate, getStagingManager, getSymmetricEngine, getTriggerRouterService, logTestComplete, logTestRunning, printDatabase, resetBatches, resetGaps, routeAndCreateGaps, setLoggingLevelForTest, setup
-
Constructor Details
-
AbstractRouterServiceTest
public AbstractRouterServiceTest()
-
-
Method Details
-
testRoutingScenarios
- Throws:
Exception
-
testMultiChannelRoutingToEveryone
public void testMultiChannelRoutingToEveryone() -
testLookupTableRouting
public void testLookupTableRouting() -
testColumnMatchTransactionalOnlyRoutingToNode1
public void testColumnMatchTransactionalOnlyRoutingToNode1() -
testSubSelectNonTransactionalRoutingToNode1
public void testSubSelectNonTransactionalRoutingToNode1() -
testSyncIncomingBatch
- Throws:
Exception
-
testLargeNumberOfEventsToManyNodes
public void testLargeNumberOfEventsToManyNodes() -
testBshTransactionalRoutingOnUpdate
public void testBshTransactionalRoutingOnUpdate() -
testBshRoutingDeletesToNode3
public void testBshRoutingDeletesToNode3() -
testColumnMatchSubtableRoutingToNode1
public void testColumnMatchSubtableRoutingToNode1() -
testColumnMatchOnNull
public void testColumnMatchOnNull() -
testColumnMatchOnNotNull
public void testColumnMatchOnNotNull() -
testSyncOnColumnChange
public void testSyncOnColumnChange() -
testSyncIncomingBatchWhenUnrouted
- Throws:
Exception
-
testDefaultRouteToTargetNodeGroupOnly
- Throws:
Exception
-
testUnroutedDataCreatedBatch
public void testUnroutedDataCreatedBatch() -
testGapRouting
- Throws:
Exception
-
testGapWithGapAtBegining
public void testGapWithGapAtBegining() -
testGapWithGapAtEnd
public void testGapWithGapAtEnd() -
testDataGapExpired
- Throws:
Exception
-
testLotsOfGaps
public void testLotsOfGaps() -
testNoResend
public void testNoResend() -
testDontSelectOldDataDuringRouting
- Throws:
Exception
-
testMaxNumberOfDataToRoute
public void testMaxNumberOfDataToRoute() -
setUpDefaultTriggerRouterForTable1
protected void setUpDefaultTriggerRouterForTable1() -
countUnroutedBatches
protected int countUnroutedBatches() -
getTestRoutingTableTrigger
-
filterForChannels
-
countBatchesForChannel
-
insertGaps
protected void insertGaps(int insertedCount, int rollbackCount, int repeatCount) -
deleteAll
-
insert
-
insert
-
insert
-
insert
-
update
-
execute
-