diff --git a/src/test/java/com/easypost/CarrierAccountTest.java b/src/test/java/com/easypost/CarrierAccountTest.java index 963fc7d7..c4002a41 100644 --- a/src/test/java/com/easypost/CarrierAccountTest.java +++ b/src/test/java/com/easypost/CarrierAccountTest.java @@ -124,10 +124,6 @@ public void testCreateWithCustomWorkflow() throws EasyPostException { public void testCreateWithUPS() throws EasyPostException { vcr.setUpTest("create_with_ups"); - Map data = new HashMap<>(); - data.put("type", "UpsAccount"); - data.put("account_number", "123456789"); - CarrierAccount upsAccount = createUpsCarrierAccount(); assertInstanceOf(CarrierAccount.class, upsAccount); diff --git a/src/test/java/com/easypost/HookTest.java b/src/test/java/com/easypost/HookTest.java index 55560fe7..3f275750 100644 --- a/src/test/java/com/easypost/HookTest.java +++ b/src/test/java/com/easypost/HookTest.java @@ -71,6 +71,12 @@ public static Object testRequestHooks(RequestHookResponses data) { return true; } + /** + * Test subscribing a response hook when an HTTP error occurs. + * + * @param data The ResponseHookResponses object representing the hook data. + * @return The result of the test. + */ public static Object testResponseHookOnHttpError(ResponseHookResponses data) { assertEquals("https://api.easypost.com/v2/parcels/par_123", data.getPath()); assertEquals("GET", data.getMethod());