Skip to content

Commit 4a12377

Browse files
committed
chore: cleanup
1 parent 70c5a4f commit 4a12377

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

src/test/java/com/easypost/EasyPostClientTest.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package com.easypost;
22

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;
74

85
import java.util.HashMap;
96
import java.util.List;
107
import java.util.Map;
118

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;
1414

1515
public final class EasyPostClientTest {
1616
private static TestUtils.VCR vcr;
@@ -39,11 +39,8 @@ public void testMakeApiCall() throws EasyPostException {
3939

4040
Map<String, Object> response = vcr.client.makeApiCall(RequestMethod.GET, "addresses", params);
4141

42-
assertNotNull(response);
4342
List<?> addresses = (List<?>) response.get("addresses");
44-
assertNotNull(addresses);
4543
assertEquals(1, addresses.size());
46-
4744
Map<String, Object> firstAddress = (Map<String, Object>) addresses.get(0);
4845
assertEquals("Address", firstAddress.get("object"));
4946
}

0 commit comments

Comments
 (0)