@Test public void testSerialize() throws Exception { val expected = objectMapper.writeValueAsBytes(metricData); val actual = serdeUnderTest.serializer().serialize("some-topic", metricData); assertArrayEquals(expected, actual); }
@Override public Serializer<MetricData> serializer() { return new Ser(); }
MetricDataJsonSerde implements Serde<MetricData> { @Override public Serializer<MetricData> serializer() { return new Ser(); } }
MetricDataJsonSerde implements Serde<MetricData> { @Override public Serializer<MetricData> serializer() { return new Ser(); }  }
MetricDataJsonSerde implements Serde<MetricData> { @Override public Serializer<MetricData> serializer() { return new Ser(); }  @Override void configure(Map<String, ?> map, boolean b); @Override void close(); @Override Serializer<MetricData> serializer(); @Override Deserializer<MetricData> deserializer(); }
MetricDataJsonSerde implements Serde<MetricData> { @Override public Serializer<MetricData> serializer() { return new Ser(); }  @Override void configure(Map<String, ?> map, boolean b); @Override void close(); @Override Serializer<MetricData> serializer(); @Override Deserializer<MetricData> deserializer();  }