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 int
countBatchesForChannel
(OutgoingBatches batches, NodeChannel channel) protected int
protected void
protected void
protected void
filterForChannels
(OutgoingBatches batches, NodeChannel... channels) protected TriggerRouter
getTestRoutingTableTrigger
(String tableName) protected void
protected void
protected void
insert
(String tableName, int count, boolean transactional, String node2disable, String routingVarcharFieldValue) protected void
insert
(String tableName, int count, boolean transactional, String node2disable, String routingVarcharFieldValue, boolean rollback) protected void
insertGaps
(int insertedCount, int rollbackCount, int repeatCount) protected void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
protected void
Methods 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
-