use of io.druid.data.input.schemarepo.Avro1124RESTRepositoryClientWrapper in project druid by druid-io.
the class AvroStreamInputRowParserTest method testSerde.
@Test
public void testSerde() throws IOException {
Repository repository = new Avro1124RESTRepositoryClientWrapper("http://github.io");
AvroStreamInputRowParser parser = new AvroStreamInputRowParser(PARSE_SPEC, new SchemaRepoBasedAvroBytesDecoder<String, Integer>(new Avro1124SubjectAndIdConverter(TOPIC), repository));
ByteBufferInputRowParser parser2 = jsonMapper.readValue(jsonMapper.writeValueAsString(parser), ByteBufferInputRowParser.class);
assertEquals(parser, parser2);
}
Aggregations