T deserializeJson(String json, Type type, ApiClient apiClient) {
- return (T) apiClient.getJSON().deserialize(json, type);
- }
-
- private void assertPetMatches(Pet expected, Pet actual) {
- assertNotNull(actual);
- assertEquals(expected.getId(), actual.getId());
- assertNotNull(actual.getCategory());
- assertEquals(expected.getCategory().getName(),
- actual.getCategory().getName());
- }
-
- /**
- * Assert that the given upload/download progress list satisfies the
- * following constraints:
- *
- * - List is not empty
- * - Byte count should be nondecreasing
- * - The last element, and only the last element, should have done=true
- */
- private void assertValidProgress(List