@Test(expected=IllegalArgumentException.class) public void testMissingRequiredField() throws Exception { JsonConverter jc = new JsonConverter(sr(f1, f2, f3Rec)); String json = "{\"field2\": [true, true, false], \"field3\": {\"key\": \"value\"}}"; jc.convert(json); }
@SuppressWarnings("unchecked") public GenericRecord convert(String json) throws IOException { return convert(mapper.readValue(json, Map.class), baseSchema); }
JsonConverter { @SuppressWarnings("unchecked") public GenericRecord convert(String json) throws IOException { return convert(mapper.readValue(json, Map.class), baseSchema); } }
JsonConverter { @SuppressWarnings("unchecked") public GenericRecord convert(String json) throws IOException { return convert(mapper.readValue(json, Map.class), baseSchema); } JsonConverter(Schema schema); }
JsonConverter { @SuppressWarnings("unchecked") public GenericRecord convert(String json) throws IOException { return convert(mapper.readValue(json, Map.class), baseSchema); } JsonConverter(Schema schema); @SuppressWarnings("unchecked") GenericRecord convert(String json); }
JsonConverter { @SuppressWarnings("unchecked") public GenericRecord convert(String json) throws IOException { return convert(mapper.readValue(json, Map.class), baseSchema); } JsonConverter(Schema schema); @SuppressWarnings("unchecked") GenericRecord convert(String json);  }