Package test.utils.json

Examples of test.utils.json.CollectionObj


      i.setContact1(i2);
      list1.add(i);
    }
    list.add(list1);
   
    CollectionObj o = new CollectionObj();
    o.setList(list);
    String json = Json.toJson(o);
   
    CollectionObj o2 = Json.toObject(json, CollectionObj.class);
    Assert.assertThat(o2.getList().size(), is(2));
    Assert.assertThat(o2.getList().get(0).size(), is(10));
    Assert.assertThat(o2.getList().get(0).get(1).getId(), is(33443));
    Assert.assertThat(o2.getList().get(1).get(1).getId(), is(1001));
  }
View Full Code Here

TOP

Related Classes of test.utils.json.CollectionObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.