@Test public void testOverrideSchema() throws IOException { Schema schema = TestAvroSchemas.getSchema(TestAvroSchemas.OVERRIDE_SCHEMA); RecordField field = FormAvroConverter.createRecordFieldFromSchema(schema); Assert.assertNotNull(field); Assert.assertNotNull(field.getValue()); Assert.assertEquals(2, field.getValue().size()); FormField formField = field.getValue().get(0); Assert.assertNotNull(formField); Assert.assertTrue(formField instanceof ArrayField); ArrayField arrayField = (ArrayField)formField; Assert.assertTrue(arrayField.isOverride()); Assert.assertFalse(arrayField.isChanged()); }
public static RecordField createRecordFieldFromSchema(Schema schema) throws IOException { return createRecordFieldFromSchema(schema, null); }
FormAvroConverter implements ConverterConstants { public static RecordField createRecordFieldFromSchema(Schema schema) throws IOException { return createRecordFieldFromSchema(schema, null); } }
FormAvroConverter implements ConverterConstants { public static RecordField createRecordFieldFromSchema(Schema schema) throws IOException { return createRecordFieldFromSchema(schema, null); }  }
FormAvroConverter implements ConverterConstants { public static RecordField createRecordFieldFromSchema(Schema schema) throws IOException { return createRecordFieldFromSchema(schema, null); }  static RecordField createRecordFieldFromSchema(Schema schema); static RecordField createRecordFieldFromSchema(Schema schema, CtlSource ctlSource); static GenericRecord createGenericRecordFromRecordField(RecordField recordField); static RecordField createRecordFieldFromGenericRecord(GenericRecord record); static RecordField createRecordFieldFromGenericRecord(GenericRecord record, CtlSource ctlSource); }
FormAvroConverter implements ConverterConstants { public static RecordField createRecordFieldFromSchema(Schema schema) throws IOException { return createRecordFieldFromSchema(schema, null); }  static RecordField createRecordFieldFromSchema(Schema schema); static RecordField createRecordFieldFromSchema(Schema schema, CtlSource ctlSource); static GenericRecord createGenericRecordFromRecordField(RecordField recordField); static RecordField createRecordFieldFromGenericRecord(GenericRecord record); static RecordField createRecordFieldFromGenericRecord(GenericRecord record, CtlSource ctlSource);  }