예제 #1
0
  @Test
  public void testTypeLiteralList() throws Exception {
    JsonCodec<List<Person>> jsonCodec = jsonCodec(new TypeLiteral<List<Person>>() {});

    Person.validatePersonListJsonCodec(jsonCodec);
  }
예제 #2
0
  @Test
  public void testListJsonCodecFromJsonCodec() throws Exception {
    JsonCodec<List<Person>> jsonCodec = listJsonCodec(jsonCodec(Person.class));

    Person.validatePersonListJsonCodec(jsonCodec);
  }