Skip to content

Commit d00cc77

Browse files
committed
fix: mocking in unrelated tests
1 parent 9472276 commit d00cc77

File tree

2 files changed

+265
-2
lines changed

2 files changed

+265
-2
lines changed

src/test/cassettes/carrier_account/create_with_amazon.json

Lines changed: 263 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/java/com/easypost/CarrierAccountTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public final class CarrierAccountTest {
2929

3030
private static TestUtils.VCR vcr;
3131

32-
private static MockedStatic<Requestor> requestMock = Mockito.mockStatic(Requestor.class);
33-
3432
private static CarrierAccount createBasicCarrierAccount() throws EasyPostException {
3533
CarrierAccount carrierAccount = vcr.client.carrierAccount.create(Fixtures.basicCarrierAccount());
3634
testCarrierAccountId = carrierAccount.getId(); // trigger deletion after test
@@ -284,6 +282,8 @@ public void testCarrierFieldsJsonDeserialization() {
284282
*/
285283
@Test
286284
public void testCarrierFieldsJsonSerialization() {
285+
MockedStatic<Requestor> requestMock = Mockito.mockStatic(Requestor.class);
286+
287287
String carrierAccountJson = "[{\"id\":\"ca_123\",\"object\":\"CarrierAccount\",\"fields\":{\"credentials\":" +
288288
"{\"account_number\":{\"visibility\":\"visible\",\"label\":\"DHL Account Number\"," +
289289
"\"value\":\"123456\"},\"country\":{\"visibility\":\"visible\",\"label\":" +

0 commit comments

Comments
 (0)