Class AbstractDatabaseWriterTest
java.lang.Object
org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriterTest
Checks column source lookups in AbstractDatabaseWriter using a wrapper class StubAbstractDatabaseWriter - see below.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Test wrapper class for the AbstractDatabaseWriter class Includes a copy of the older code (getRowDataOld) - before optimization. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static IDatabasePlatform
protected DatabaseWriterSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setTableColumnTypes
(Table sourceTable) Helper.void
void
void
void
Source and target have lots of columns with same names and only 5 differences.void
void
-
Field Details
-
platform
-
writerSettings
-
-
Constructor Details
-
AbstractDatabaseWriterTest
public AbstractDatabaseWriterTest()
-
-
Method Details
-
setTableColumnTypes
Helper. Sets all columns in given table to the same data type -
testGenerateTableColumnSourceReferences_KeyMatch
@Test public void testGenerateTableColumnSourceReferences_KeyMatch() -
testTableColumnSourceReferences_AllColumnsMatch
@Test public void testTableColumnSourceReferences_AllColumnsMatch() -
testTableColumnSourceReferences_FewColumnsMatchTarget
@Test public void testTableColumnSourceReferences_FewColumnsMatchTarget() -
testGetRowData_FullMatch4Columns
@Test public void testGetRowData_FullMatch4Columns() -
testGetRowData_LotsOfRandomAndFewSkippedColumns
@Test public void testGetRowData_LotsOfRandomAndFewSkippedColumns()Source and target have lots of columns with same names and only 5 differences. Time the getRowData() method! 10 => 0 ms ; 100 cols * 1 row => 4 ms ; 1000 cols * 1 row=> 19 ms; 100 cols*1000 rows => 9 ms; OLD: 20 ros*500000ros=>706 ms NEW=73ms! -
testClearTargetColumnReferencesMap
@Test public void testClearTargetColumnReferencesMap()
-