@Test public void test_toObject_updateresponse() throws RdapClientException { UpdateResponse response = JsonUtil.toObject(responseString, UpdateResponse.class); assertEquals(400, response.getErrorCode()); assertEquals(4002, response.getSubErrorCode()); assertEquals("domain-1", response.getHandle()); assertEquals("Property can't be empty: domainName", response .getDescription().get(0)); }
public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap);  }