Exemplo n.º 1
0
  @MediumTest
  public void jsonTest2() {

    gb.disableHtmlEscaping();
    // gb.registerTypeAdapter(Term.class, new TermDe());
    gb.registerTypeAdapterFactory(new TermFactory());

    // gb.registerTypeAdapterFactory(new GTool.NullStringToEmptyAdapterFactory());
    // gb.setVersion(1.0);

    g = gb.create();

    final outputV1ProductWrap output_product = g.fromJson(rtt, outputV1ProductWrap.class);

    retent.current_product_list.addAll(output_product.getProducts());
    retent.result_total_pages = output_product.totalpages();
    retent.result_current_page = output_product.current_page();
  }
Exemplo n.º 2
0
 @MediumTest
 public void jsonTest3() {
   final outputV1ProductWrap output_product = g.fromJson(rtt, outputV1ProductWrap.class);
   retent.result_total_pages = output_product.totalpages();
   retent.result_current_page = output_product.current_page();
 }