Class AbstractDataLoaderServiceTest
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractServiceTest
org.jumpmind.symmetric.service.impl.AbstractDataLoaderServiceTest
- Direct Known Subclasses:
JdbcDataLoaderServiceTest
@TestMethodOrder(org.junit.jupiter.api.MethodOrderer.MethodName.class)
public abstract class AbstractDataLoaderServiceTest
extends AbstractServiceTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected Nodeprotected Nodeprotected static intprotected static final String[]protected static final String[]protected static final StringFields inherited from class org.jumpmind.symmetric.service.impl.AbstractServiceTest
engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidassertTestTableEquals(String testTableId, String[] expectedValues) voidcleanup()protected AbstractBatch.StatusfindIncomingBatchStatus(int batchId, String nodeId) protected Stringprotected IDataLoaderServiceprotected StringgetId()protected Stringprotected Stringprotected Stringprotected MockTransportManagerprotected Stringprotected CsvWritergetWriter(OutputStream out) protected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidtestSimple(String dmlType, String[] values, String[] expectedValues) protected StringtranslateExpectedCharString(String value, int size, boolean isRequired) protected StringtranslateExpectedDate(String value) protected StringtranslateExpectedString(String value, boolean isRequired) protected StringtranslateExpectedTimestamp(String value) protected voidwriteTable(CsvWriter writer, String tableName, String[] keys, String[] columns) 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
-
Field Details
-
TEST_TABLE
- See Also:
-
TEST_KEYS
-
TEST_COLUMNS
-
batchId
protected static int batchId -
sequenceId
protected static int sequenceId -
client
-
root
-
-
Constructor Details
-
AbstractDataLoaderServiceTest
public AbstractDataLoaderServiceTest()
-
-
Method Details
-
getNextBatchId
-
getBatchId
-
getNextId
-
getId
-
test01IncomingBatch
- Throws:
Exception
-
test02Statistics
- Throws:
Exception
-
test03UpdateCollision
- Throws:
Exception
-
test04SqlStatistics
- Throws:
Exception
-
test05SkippingResentBatch
- Throws:
Exception
-
test06ErrorWhileSkip
- Throws:
Exception
-
test07DataIntregrityError
- Throws:
Exception
-
test08ErrorWhileParsing
- Throws:
Exception
-
test09ErrorThenSuccessBatch
- Throws:
Exception
-
test10MultipleBatch
- Throws:
Exception
-
testSimple
protected void testSimple(String dmlType, String[] values, String[] expectedValues) throws Exception - Throws:
Exception
-
load
- Throws:
Exception
-
findIncomingBatchStatus
-
test12RegisteredDataWriterFilter
@Test public void test12RegisteredDataWriterFilter() -
test13NanValue
- Throws:
Exception
-
getWriter
-
getTransportManager
-
writeTable
protected void writeTable(CsvWriter writer, String tableName, String[] keys, String[] columns) throws IOException - Throws:
IOException
-
assertTestTableEquals
-
assertEquals
-
getSelect
-
getWhere
-
translateExpectedString
-
translateExpectedCharString
-
translateExpectedDate
-
translateExpectedTimestamp
-
getDataLoaderService
-
cleanup
public void cleanup()
-