Package io.debezium.connector.mysql
Class ReadBinLogIT
java.lang.Object
io.debezium.connector.mysql.ReadBinLogIT
- All Implemented Interfaces:
Testing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprotected static classstatic classstatic classprotected static classstatic interfaceNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Serializableprivate com.github.shyiko.mysql.binlog.BinaryLogClientprivate JdbcConfigurationprivate MySqlTestConnectionprivate ReadBinLogIT.EventQueueprivate final UniqueDatabaseprotected static final longprivate List<com.github.shyiko.mysql.binlog.event.Event>protected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Serializableany()protected voidassertRow(Serializable[] data, Serializable... expected) protected voidassertRows(com.github.shyiko.mysql.binlog.event.DeleteRowsEventData eventData, ReadBinLogIT.RowBuilder rows) protected voidassertRows(com.github.shyiko.mysql.binlog.event.UpdateRowsEventData eventData, ReadBinLogIT.RowBuilder rows) protected voidassertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData, int numRowsInEvent, Serializable... expectedValuesInRows) protected voidassertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData, ReadBinLogIT.RowBuilder rows) voidprotected voidlogConsumedEvent(com.github.shyiko.mysql.binlog.event.Event event) protected voidlogIgnoredEvent(com.github.shyiko.mysql.binlog.event.Event event) protected <T extends com.github.shyiko.mysql.binlog.event.EventData>
List<T>recordedEventData(Class<T> eventType, int expectedCount) protected voidrecordEvent(com.github.shyiko.mysql.binlog.event.Event event) protected ReadBinLogIT.RowBuilderrows()voidvoidvoidTest case that is normally commented out since it is only useful to print out the DDL statements recorded by the binlog during a MySQL server initialization and startup.voidvoidvoidvoidprotected voidprotected voidstartClient(Consumer<com.github.shyiko.mysql.binlog.BinaryLogClient> preConnect)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
DEFAULT_TIMEOUT
protected static final long DEFAULT_TIMEOUT -
ANY_OBJECT
-
counters
-
client
private com.github.shyiko.mysql.binlog.BinaryLogClient client -
conn
-
events
-
config
-
DATABASE
-
skipTest
-
-
Constructor Details
-
ReadBinLogIT
public ReadBinLogIT()
-
-
Method Details
-
beforeEach
-
afterEach
- Throws:
IOExceptionSQLException
-
startClient
- Throws:
IOExceptionTimeoutExceptionSQLException
-
startClient
protected void startClient(Consumer<com.github.shyiko.mysql.binlog.BinaryLogClient> preConnect) throws IOException, TimeoutException, SQLException - Throws:
IOExceptionTimeoutExceptionSQLException
-
shouldFailToConnectToInvalidBinlogFile
- Throws:
Exception
-
shouldReadMultipleBinlogFiles
- Throws:
Exception
-
shouldCaptureSingleWriteUpdateDeleteEvents
- Throws:
Exception
-
shouldCaptureMultipleWriteUpdateDeleteEvents
- Throws:
Exception
-
shouldCaptureMultipleWriteUpdateDeletesInSingleEvents
- Throws:
Exception
-
shouldCaptureQueryEventData
Test case that is normally commented out since it is only useful to print out the DDL statements recorded by the binlog during a MySQL server initialization and startup.- Throws:
Exception- if there are problems
-
shouldQueryInformationSchema
- Throws:
Exception
-
logConsumedEvent
protected void logConsumedEvent(com.github.shyiko.mysql.binlog.event.Event event) -
logIgnoredEvent
protected void logIgnoredEvent(com.github.shyiko.mysql.binlog.event.Event event) -
recordEvent
protected void recordEvent(com.github.shyiko.mysql.binlog.event.Event event) -
recordedEventData
-
assertRow
-
assertRows
protected void assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData, int numRowsInEvent, Serializable... expectedValuesInRows) -
any
-
rows
-
assertRows
protected void assertRows(com.github.shyiko.mysql.binlog.event.UpdateRowsEventData eventData, ReadBinLogIT.RowBuilder rows) -
assertRows
protected void assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData, ReadBinLogIT.RowBuilder rows) -
assertRows
protected void assertRows(com.github.shyiko.mysql.binlog.event.DeleteRowsEventData eventData, ReadBinLogIT.RowBuilder rows)
-