Class MongoDataConverterTest
- java.lang.Object
-
- io.debezium.connector.mongodb.transforms.MongoDataConverterTest
-
public class MongoDataConverterTest extends Object
Unit test forMongoDataConverter.- Author:
- Sairam Polavarapu
-
-
Constructor Summary
Constructors Constructor Description MongoDataConverterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringgetFile(String fileName)voidsetup()voidshouldCreateCorrectSchemaFromInsertJson()voidshouldCreateCorrectStructFromInsertJson()voidshouldProcessNullValue()voidshouldProcessUnsupportedValue()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
shouldCreateCorrectStructFromInsertJson
public void shouldCreateCorrectStructFromInsertJson()
-
shouldCreateCorrectSchemaFromInsertJson
public void shouldCreateCorrectSchemaFromInsertJson()
-
getFile
private String getFile(String fileName) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
shouldProcessNullValue
@FixFor("DBZ-928") public void shouldProcessNullValue()
-
shouldProcessUnsupportedValue
@FixFor("DBZ-1315") public void shouldProcessUnsupportedValue()
-
-