@Test public void testTypeLiteralMap() throws Exception { JsonCodec<Map<String, Person>> jsonCodec = jsonCodec(new TypeLiteral<Map<String, Person>>() {}); Person.validatePersonMapJsonCodec(jsonCodec); }
@Test public void testMapJsonCodecFromJsonCodec() throws Exception { JsonCodec<Map<String, Person>> jsonCodec = mapJsonCodec(String.class, jsonCodec(Person.class)); Person.validatePersonMapJsonCodec(jsonCodec); }