Package io.debezium.embedded
Interface ConnectorOutputTest.TestData
- All Superinterfaces:
AutoCloseable
- Enclosing class:
- ConnectorOutputTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()If records are being recorded, then complete writing them and close all resources associated with the test data.read()Read the records that are expected by the test.default voidRecord the function that should be called with each of the actual records output by the connector.
-
Method Details
-
read
Read the records that are expected by the test.- Returns:
- the expected records, or null if there are none
- Throws:
IOException- if there is a problem reading the expected records
-
write
Record the function that should be called with each of the actual records output by the connector. By default this method does nothing.- Parameters:
sourceRecord- the JSON representation of the source record; never null
-
close
If records are being recorded, then complete writing them and close all resources associated with the test data. By default this method does nothing.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- if there is a problem writing the expected records
-