@Test public void test_toObject_exception() { UpdateResponse response; String message = null; try { response = JsonUtil.toObject(responseException, UpdateResponse.class); } catch (RdapClientException e) { response = null; message = e.getMessage(); } assertEquals(null, response); String[] messages = message.split("\n"); assertEquals(ExceptionMessage.JSON_TO_OBJECT_ERROR.getMessage(), messages[0] + "\n"); }
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);  }