Class MongoArrayConverterTest


  • public class MongoArrayConverterTest
    extends Object
    Unit test for MongoDataConverter that verifies array types.
    Author:
    Jiri Pechanec
    • 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
    • Constructor Detail

      • MongoArrayConverterTest

        public MongoArrayConverterTest()
    • 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
      • shouldCreateStructForHeterogenousDocumentInArray

        public void shouldCreateStructForHeterogenousDocumentInArray()
                                                              throws Exception
        Throws:
        Exception