|
1 | 1 | package com.easypost; |
2 | 2 |
|
3 | | -import com.easypost.exception.EasyPostException; |
4 | | -import com.easypost.http.Requestor.RequestMethod; |
5 | | -import org.junit.jupiter.api.BeforeAll; |
6 | | -import org.junit.jupiter.api.Test; |
| 3 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
7 | 4 |
|
8 | 5 | import java.util.HashMap; |
9 | 6 | import java.util.List; |
10 | 7 | import java.util.Map; |
11 | 8 |
|
12 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
13 | | -import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 9 | +import org.junit.jupiter.api.BeforeAll; |
| 10 | +import org.junit.jupiter.api.Test; |
| 11 | + |
| 12 | +import com.easypost.exception.EasyPostException; |
| 13 | +import com.easypost.http.Requestor.RequestMethod; |
14 | 14 |
|
15 | 15 | public final class EasyPostClientTest { |
16 | 16 | private static TestUtils.VCR vcr; |
@@ -39,11 +39,8 @@ public void testMakeApiCall() throws EasyPostException { |
39 | 39 |
|
40 | 40 | Map<String, Object> response = vcr.client.makeApiCall(RequestMethod.GET, "addresses", params); |
41 | 41 |
|
42 | | - assertNotNull(response); |
43 | 42 | List<?> addresses = (List<?>) response.get("addresses"); |
44 | | - assertNotNull(addresses); |
45 | 43 | assertEquals(1, addresses.size()); |
46 | | - |
47 | 44 | Map<String, Object> firstAddress = (Map<String, Object>) addresses.get(0); |
48 | 45 | assertEquals("Address", firstAddress.get("object")); |
49 | 46 | } |
|
0 commit comments