@Test public void testDeserializeFromJson() throws Exception { Collection<Instance> expected = createInstancesCase(); String instancesJson = "{\"instanceList\":[" + StringUtils .join(expected.stream().map(Instance::toJson).collect(Collectors.toList()), ",") + "]}"; Instances actual = JacksonUtils.toObj(instancesJson, Instances.class); assertEquals(expected, actual.getInstanceList()); }
public List<Instance> getInstanceList() { return instanceList; }
Instances implements Record { public List<Instance> getInstanceList() { return instanceList; } }
Instances implements Record { public List<Instance> getInstanceList() { return instanceList; }  }
Instances implements Record { public List<Instance> getInstanceList() { return instanceList; }  List<Instance> getInstanceList(); void setInstanceList(List<Instance> instanceList); @Override String toString(); @Override @JsonIgnore String getChecksum(); String convertMap2String(Map<String, String> map); }
Instances implements Record { public List<Instance> getInstanceList() { return instanceList; }  List<Instance> getInstanceList(); void setInstanceList(List<Instance> instanceList); @Override String toString(); @Override @JsonIgnore String getChecksum(); String convertMap2String(Map<String, String> map);  }