コード例 #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);
  }