Package org.jumpmind.symmetric.io
Class AbstractWriterTest
java.lang.Object
org.jumpmind.symmetric.io.AbstractWriterTest
- Direct Known Subclasses:
AbstractBulkDatabaseWriterTest,DatabaseWriterConflictTest,DatabaseWriterTest,TransformWriterTest
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static longprotected booleanprotected IDataWriterprotected static IDatabasePlatformprotected static longprotected static final String[]protected static final String[]protected static final Stringprotected DatabaseWriterSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidassertTestTableEquals(String testTableId, String[] expectedValues) protected TablebuildSourceTable(String tableName, String[] keyNames, String[] columnNames) protected longprotected longprotected StringgetId()protected longprotected Stringprotected Stringprotected String[]protected String[]protected Stringprotected Stringbooleanprotected booleanisOracle()protected StringqueryForRow(String id) voidsetErrorExpected(boolean errorExpected) protected StringtranslateExpectedCharString(String value, int size, boolean isRequired) protected StringtranslateExpectedString(String value, boolean isRequired) protected longwriteData(BinaryEncoding encoding, AbstractWriterTest.TableCsvData... datas) protected longwriteData(AbstractWriterTest.TableCsvData... datas) protected voidprotected voidprotected voidprotected voidwriteData(CsvData data, String[] expectedValues, String tableName, String[] keyNames, String[] columnNames) protected longwriteData(IDataWriter writer, BinaryEncoding encoding, AbstractWriterTest.TableCsvData... datas) protected longwriteData(IDataWriter writer, AbstractWriterTest.TableCsvData... datas) protected longwriteData(IDataWriter writer, DataContext context, BinaryEncoding encoding, AbstractWriterTest.TableCsvData... datas) protected longwriteData(IDataWriter writer, DataContext context, AbstractWriterTest.TableCsvData... datas)
-
Field Details
-
platform
-
errorExpected
protected boolean errorExpected -
TEST_TABLE
- See Also:
-
TEST_KEYS
-
TEST_COLUMNS
-
batchId
protected static long batchId -
sequenceId
protected static long sequenceId -
writerSettings
-
lastDataWriterUsed
-
-
Constructor Details
-
AbstractWriterTest
public AbstractWriterTest()
-
-
Method Details
-
getNextBatchId
protected long getNextBatchId() -
getBatchId
protected long getBatchId() -
getNextId
-
getId
-
buildSourceTable
-
writeData
-
getTestTable
-
getTestKeys
-
getTestColumns
-
writeData
-
writeData
-
writeData
-
writeData
-
writeData
-
writeData
-
writeData
protected long writeData(IDataWriter writer, BinaryEncoding encoding, AbstractWriterTest.TableCsvData... datas) -
writeData
protected long writeData(IDataWriter writer, DataContext context, AbstractWriterTest.TableCsvData... datas) -
writeData
protected long writeData(IDataWriter writer, DataContext context, BinaryEncoding encoding, AbstractWriterTest.TableCsvData... datas) -
assertTestTableEquals
-
getSelect
-
getWhere
-
translateExpectedString
-
translateExpectedCharString
-
assertEquals
-
printDatabase
-
isOracle
protected boolean isOracle() -
setErrorExpected
public void setErrorExpected(boolean errorExpected) -
isErrorExpected
public boolean isErrorExpected() -
queryForRow
-
countRows
-