@Test public void correct_decode_with_null_status() throws Exception { JsonNode json = mapper .readTree( "{\n" + " \"name\": \"test_topic6\",\n" + " \"topicName\": \"road.test_topic6\",\n" + " \"type\":\"COMPACT\",\n" + " \"status\": null,\n" + " \"messageStatus\": null,\n" + " \"deleted\": true\n" + "}"); KafkaRoad road = reader.read(json); assertThat(road, is(new KafkaRoad("test_topic6", "road.test_topic6", RoadType.COMPACT, null, null, true))); }
@Override public KafkaRoad read(JsonNode json) { return mapper.convertValue(json, KafkaRoad.class); }
KafkaModelReader implements ModelReader<KafkaRoad> { @Override public KafkaRoad read(JsonNode json) { return mapper.convertValue(json, KafkaRoad.class); } }
KafkaModelReader implements ModelReader<KafkaRoad> { @Override public KafkaRoad read(JsonNode json) { return mapper.convertValue(json, KafkaRoad.class); }  }
KafkaModelReader implements ModelReader<KafkaRoad> { @Override public KafkaRoad read(JsonNode json) { return mapper.convertValue(json, KafkaRoad.class); }  @Override KafkaRoad read(JsonNode json); }
KafkaModelReader implements ModelReader<KafkaRoad> { @Override public KafkaRoad read(JsonNode json) { return mapper.convertValue(json, KafkaRoad.class); }  @Override KafkaRoad read(JsonNode json);  }