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