Class MongoArrayConverterTest
- java.lang.Object
-
- io.debezium.connector.mongodb.transforms.MongoArrayConverterTest
-
public class MongoArrayConverterTest extends Object
Unit test forMongoDataConverterthat verifies array types.- Author:
- Jiri Pechanec
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.kafka.connect.data.SchemaBuilderbuilderprivate static StringEMPTY_ARRAYprivate static StringHETEROGENOUS_ARRAYprivate static StringHETEROGENOUS_DOCUMENT_IN_ARRAYprivate static StringHOMOGENOUS_ARRAYS
-
Constructor Summary
Constructors Constructor Description MongoArrayConverterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidshouldCreateSchemaForEmptyArrayEncodingArray()voidshouldCreateSchemaForEmptyArrayEncodingDocument()voidshouldCreateSchemaForHeterogenousArray()voidshouldCreateSchemaForHeterogenousDocumentInArray()voidshouldCreateSchemaForHomogenousArray()voidshouldCreateStructForEmptyArrayEncodingArray()voidshouldCreateStructForEmptyArrayEncodingDocument()voidshouldCreateStructForHeterogenousArray()voidshouldCreateStructForHeterogenousDocumentInArray()voidshouldCreateStructForHomogenousArray()voidshouldDetectHeterogenousArray()voidshouldDetectHeterogenousDocumentInArray()
-
-
-
Field Detail
-
HETEROGENOUS_ARRAY
private static final String HETEROGENOUS_ARRAY
-
EMPTY_ARRAY
private static final String EMPTY_ARRAY
-
HETEROGENOUS_DOCUMENT_IN_ARRAY
private static final String HETEROGENOUS_DOCUMENT_IN_ARRAY
-
HOMOGENOUS_ARRAYS
private static final String HOMOGENOUS_ARRAYS
-
builder
private org.apache.kafka.connect.data.SchemaBuilder builder
-
-
Method Detail
-
shouldDetectHeterogenousArray
public void shouldDetectHeterogenousArray() throws Exception- Throws:
Exception
-
shouldDetectHeterogenousDocumentInArray
public void shouldDetectHeterogenousDocumentInArray() throws Exception- Throws:
Exception
-
shouldCreateSchemaForHomogenousArray
public void shouldCreateSchemaForHomogenousArray() throws Exception- Throws:
Exception
-
shouldCreateStructForHomogenousArray
public void shouldCreateStructForHomogenousArray() throws Exception- Throws:
Exception
-
shouldCreateSchemaForEmptyArrayEncodingArray
public void shouldCreateSchemaForEmptyArrayEncodingArray() throws Exception- Throws:
Exception
-
shouldCreateStructForEmptyArrayEncodingArray
public void shouldCreateStructForEmptyArrayEncodingArray() throws Exception- Throws:
Exception
-
shouldCreateSchemaForEmptyArrayEncodingDocument
public void shouldCreateSchemaForEmptyArrayEncodingDocument() throws Exception- Throws:
Exception
-
shouldCreateStructForEmptyArrayEncodingDocument
public void shouldCreateStructForEmptyArrayEncodingDocument() throws Exception- Throws:
Exception
-
shouldCreateSchemaForHeterogenousArray
public void shouldCreateSchemaForHeterogenousArray() throws Exception- Throws:
Exception
-
shouldCreateStructForHeterogenousArray
public void shouldCreateStructForHeterogenousArray() throws Exception- Throws:
Exception
-
shouldCreateSchemaForHeterogenousDocumentInArray
public void shouldCreateSchemaForHeterogenousDocumentInArray() throws Exception- Throws:
Exception
-
-