Class MySqlTaskContextTest
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.MySqlTaskContextTest
-
- Direct Known Subclasses:
MySqlTaskContextIT
public class MySqlTaskContextTest extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description protected Configurationconfigprotected io.debezium.connector.mysql.legacy.MySqlTaskContextcontextprotected StringdatabaseNameprotected static PathDB_HISTORY_PATHprotected Stringhostnameprotected Stringpasswordprotected intportprotected intserverIdprotected StringserverNameprotected Stringusername
-
Constructor Summary
Constructors Constructor Description MySqlTaskContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()voidbeforeEach()protected HistoryRecordhistoryRecord(String serverName, String binlogFilename, int position, String gtids, int event, int row, boolean snapshot)voidshouldComparePositionsWithDifferentFields()voidshouldCreateTaskFromConfigurationWithNeverSnapshotMode()voidshouldCreateTaskFromConfigurationWithWhenNeededSnapshotMode()voidshouldFilterAndMergeGtidSet()voidshouldFilterInternalDmlStatementsUsingDefaultFilter()voidshouldIgnoreDatabaseHistoryProperties()voidshouldMergeToFirstAvailableGtidSetPositions()voidshouldNotAllowBothGtidSetIncludesAndExcludes()voidshouldUseGtidSetIncludes()voidshouldUseGtidSetIncludesLiteralUuids()voidshouldUseGtidSetxcludesLiteralUuids()protected Configuration.BuildersimpleConfig()
-
-
-
Field Detail
-
DB_HISTORY_PATH
protected static final Path DB_HISTORY_PATH
-
hostname
protected String hostname
-
port
protected int port
-
username
protected String username
-
password
protected String password
-
serverId
protected int serverId
-
serverName
protected String serverName
-
databaseName
protected String databaseName
-
config
protected Configuration config
-
context
protected io.debezium.connector.mysql.legacy.MySqlTaskContext context
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
afterEach
public void afterEach()
-
simpleConfig
protected Configuration.Builder simpleConfig()
-
shouldCreateTaskFromConfigurationWithNeverSnapshotMode
public void shouldCreateTaskFromConfigurationWithNeverSnapshotMode() throws Exception- Throws:
Exception
-
shouldCreateTaskFromConfigurationWithWhenNeededSnapshotMode
public void shouldCreateTaskFromConfigurationWithWhenNeededSnapshotMode() throws Exception- Throws:
Exception
-
shouldFilterInternalDmlStatementsUsingDefaultFilter
public void shouldFilterInternalDmlStatementsUsingDefaultFilter() throws Exception- Throws:
Exception
-
shouldUseGtidSetIncludesLiteralUuids
public void shouldUseGtidSetIncludesLiteralUuids() throws Exception- Throws:
Exception
-
shouldUseGtidSetxcludesLiteralUuids
public void shouldUseGtidSetxcludesLiteralUuids() throws Exception- Throws:
Exception
-
shouldNotAllowBothGtidSetIncludesAndExcludes
public void shouldNotAllowBothGtidSetIncludesAndExcludes() throws Exception- Throws:
Exception
-
shouldFilterAndMergeGtidSet
public void shouldFilterAndMergeGtidSet() throws Exception- Throws:
Exception
-
shouldMergeToFirstAvailableGtidSetPositions
@FixFor("DBZ-923") public void shouldMergeToFirstAvailableGtidSetPositions() throws Exception
- Throws:
Exception
-
shouldComparePositionsWithDifferentFields
public void shouldComparePositionsWithDifferentFields()
-
shouldIgnoreDatabaseHistoryProperties
public void shouldIgnoreDatabaseHistoryProperties() throws Exception- Throws:
Exception
-
historyRecord
protected HistoryRecord historyRecord(String serverName, String binlogFilename, int position, String gtids, int event, int row, boolean snapshot)
-
-