Class MongoDataConverterTest

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

public class MongoDataConverterTest extends Object
Unit test for MongoDataConverter.
Author:
Sairam Polavarapu
  • Field Details

    • record

      private String record
    • val

      private org.bson.BsonDocument val
    • builder

      private org.apache.kafka.connect.data.SchemaBuilder builder
    • converter

      private io.debezium.connector.mongodb.transforms.MongoDataConverter converter
  • Constructor Details

    • MongoDataConverterTest

      public MongoDataConverterTest()
  • Method Details

    • setup

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

      public void shouldCreateCorrectStructFromInsertJson()
    • shouldCreateCorrectSchemaFromInsertJson

      public void shouldCreateCorrectSchemaFromInsertJson()
    • getFile

      private String getFile(String fileName) throws IOException, URISyntaxException
      Throws:
      IOException
      URISyntaxException
    • shouldProcessNullValue

      @FixFor("DBZ-928") public void shouldProcessNullValue()
    • shouldProcessUnsupportedValue

      @FixFor("DBZ-1315") public void shouldProcessUnsupportedValue()