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 int
protected Node
protected Node
protected static int
protected static final String[]
protected static final String[]
protected static final String
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractServiceTest
engine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
assertTestTableEquals
(String testTableId, String[] expectedValues) void
cleanup()
protected AbstractBatch.Status
findIncomingBatchStatus
(int batchId, String nodeId) protected String
protected IDataLoaderService
protected String
getId()
protected String
protected String
protected String
protected MockTransportManager
protected String
protected CsvWriter
getWriter
(OutputStream out) protected void
void
void
void
void
void
void
void
void
void
void
void
void
protected void
testSimple
(String dmlType, String[] values, String[] expectedValues) protected String
translateExpectedCharString
(String value, int size, boolean isRequired) protected String
translateExpectedDate
(String value) protected String
translateExpectedString
(String value, boolean isRequired) protected String
translateExpectedTimestamp
(String value) protected void
writeTable
(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()
-