@FunctionalInterface public static interface ConnectorOutputTest.TestData extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
If records are being recorded, then complete writing them and close all resources associated with the test data.
|
Iterator<Document> |
read()
Read the records that are expected by the test.
|
default void |
write(Document sourceRecord)
Record the function that should be called with each of the actual records output by the connector.
|
Iterator<Document> read() throws IOException
IOException - if there is a problem reading the expected recordsdefault void write(Document sourceRecord)
sourceRecord - the JSON representation of the source record; never nulldefault void close()
throws IOException
close in interface AutoCloseableIOException - if there is a problem writing the expected recordsCopyright © 2021 JBoss by Red Hat. All rights reserved.