@Test public void testTypeLiteralList() throws Exception { JsonCodec<List<Person>> jsonCodec = jsonCodec(new TypeLiteral<List<Person>>() {}); Person.validatePersonListJsonCodec(jsonCodec); }
@Test public void testListJsonCodecFromJsonCodec() throws Exception { JsonCodec<List<Person>> jsonCodec = listJsonCodec(jsonCodec(Person.class)); Person.validatePersonListJsonCodec(jsonCodec); }