Package io.debezium.document
Class DocumentSerdesTest
- java.lang.Object
-
- io.debezium.document.DocumentSerdesTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private static io.debezium.document.DocumentSerdesSERDES
-
Constructor Summary
Constructors Constructor Description DocumentSerdesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreadAsStringAndBytes(String resourceFile)protected List<io.debezium.document.Document>readResources(String prefix, String... resources)protected voidroundTrip(io.debezium.document.Document doc, IntConsumer sizeAccumulator)voidshouldConvertFromBytesToDocument1()voidshouldUseSerdeMethodToConvertFromBytesToDocument2()voidshouldUseSerdeMethodToConvertFromBytesToDocument3()voidshouldUseSerdeMethodToConvertFromBytesToDocumentForResponse1()voidshouldUseSerdeMethodToConvertFromBytesToDocumentForResponse2()
-
-
-
Method Detail
-
shouldConvertFromBytesToDocument1
public void shouldConvertFromBytesToDocument1() throws IOException- Throws:
IOException
-
shouldUseSerdeMethodToConvertFromBytesToDocument2
public void shouldUseSerdeMethodToConvertFromBytesToDocument2() throws IOException- Throws:
IOException
-
shouldUseSerdeMethodToConvertFromBytesToDocument3
public void shouldUseSerdeMethodToConvertFromBytesToDocument3() throws IOException- Throws:
IOException
-
shouldUseSerdeMethodToConvertFromBytesToDocumentForResponse1
public void shouldUseSerdeMethodToConvertFromBytesToDocumentForResponse1() throws IOException- Throws:
IOException
-
shouldUseSerdeMethodToConvertFromBytesToDocumentForResponse2
public void shouldUseSerdeMethodToConvertFromBytesToDocumentForResponse2() throws IOException- Throws:
IOException
-
readAsStringAndBytes
protected void readAsStringAndBytes(String resourceFile) throws IOException
- Throws:
IOException
-
roundTrip
protected void roundTrip(io.debezium.document.Document doc, IntConsumer sizeAccumulator)
-
readResources
protected List<io.debezium.document.Document> readResources(String prefix, String... resources) throws IOException
- Throws:
IOException
-
-