use of org.apache.gobblin.converter.avro.JsonElementConversionFactory.StringConverter in project incubator-gobblin by apache.
the class JsonElementConversionFactoryTest method schemaWithIsNullable.
@Test
public void schemaWithIsNullable() throws Exception {
String testName = "schemaWithIsNullable";
JsonObject schema = getSchemaData(testName).getAsJsonObject();
JsonArray expected = getExpectedSchema(testName).getAsJsonArray();
StringConverter converter = new StringConverter(new JsonSchema(schema));
Assert.assertEquals(avroSchemaToJsonElement(converter), expected);
}
Aggregations