Class MongoArrayConverterTest

java.lang.Object
io.debezium.connector.mongodb.transforms.MongoArrayConverterTest

public class MongoArrayConverterTest extends Object
Unit test for MongoDataConverter that verifies array types.
Author:
Jiri Pechanec
  • Field Details

    • 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
  • Constructor Details

    • MongoArrayConverterTest

      public MongoArrayConverterTest()
  • Method Details

    • setup

      public void setup() throws Exception
      Throws:
      Exception
    • shouldDetectHeterogenousArray

      public void shouldDetectHeterogenousArray() throws Exception
      Throws:
      Exception
    • shouldDetectHeterogenousDocumentInArray

      public void shouldDetectHeterogenousDocumentInArray() throws Exception
      Throws:
      Exception
    • shouldCreateSchemaForHomogenousArray

      @FixFor("DBZ-6760") public void shouldCreateSchemaForHomogenousArray() throws Exception
      Throws:
      Exception
    • shouldCreateStructForHomogenousArray

      @FixFor("DBZ-6760") 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
    • shouldCreateStructForHeterogenousDocumentInArray

      public void shouldCreateStructForHeterogenousDocumentInArray() throws Exception
      Throws:
      Exception