diff --git a/src/main/java/com/apple/itunes/storekit/client/BaseAppStoreServerAPIClient.java b/src/main/java/com/apple/itunes/storekit/client/BaseAppStoreServerAPIClient.java index 29e65a5c..5d01b625 100644 --- a/src/main/java/com/apple/itunes/storekit/client/BaseAppStoreServerAPIClient.java +++ b/src/main/java/com/apple/itunes/storekit/client/BaseAppStoreServerAPIClient.java @@ -129,7 +129,13 @@ protected T makeHttpCall(String path, String method, Map {}, 400); + try { + client.getTransactionInfo("1234"); + } catch (APIException e) { + Assertions.assertEquals(400, e.getHttpStatusCode()); + Assertions.assertNull(e.getApiError()); + Assertions.assertNull(e.getRawApiError()); + Assertions.assertNull(e.getApiErrorMessage()); + Assertions.assertNull(e.getCause()); + return; + } + Assertions.fail(); + } + @Test public void testDecodingWithUnknownEnumValue() throws IOException, APIException { String body = TestingUtility.readFile("models/transactionHistoryResponseWithMalformedEnvironment.json");