Example #1
0
 @Test
 public void testCustomParser() {
   CustomParser parser = new CustomParser(new Gson());
   builder.setParser(parser).build();
   assertThat(builder.getParser()).isInstanceOf(CustomParser.class);
 }
Example #2
0
 @Test
 public void testDefaultParser() {
   builder.build();
   assertThat(builder.getParser()).isInstanceOf(GsonParser.class);
 }