@@ -32,7 +32,6 @@ public final class CarrierAccountTest {
3232 private static MockedStatic <Requestor > requestMock = Mockito .mockStatic (Requestor .class );
3333
3434 private static CarrierAccount createBasicCarrierAccount () throws EasyPostException {
35- // This method creates DhlEcsAccount carrier account.
3635 CarrierAccount carrierAccount = vcr .client .carrierAccount .create (Fixtures .basicCarrierAccount ());
3736 testCarrierAccountId = carrierAccount .getId (); // trigger deletion after test
3837 return carrierAccount ;
@@ -48,15 +47,6 @@ private static CarrierAccount createUpsCarrierAccount() throws EasyPostException
4847 return carrierAccount ;
4948 }
5049
51- private static CarrierAccount createAmazonCarrierAccount () throws EasyPostException {
52- Map <String , Object > data = new HashMap <>();
53- data .put ("type" , "AmazonShippingAccount" );
54-
55- CarrierAccount carrierAccount = vcr .client .carrierAccount .create (data );
56- testCarrierAccountId = carrierAccount .getId (); // trigger deletion after test
57- return carrierAccount ;
58- }
59-
6050 /**
6151 * Set up the testing environment for this file.
6252 *
@@ -151,7 +141,11 @@ public void testCreateWithUPS() throws EasyPostException {
151141 public void testCreateWithAmazon () throws EasyPostException {
152142 vcr .setUpTest ("create_with_amazon" );
153143
154- CarrierAccount carrierAccount = createAmazonCarrierAccount ();
144+ Map <String , Object > data = new HashMap <>();
145+ data .put ("type" , "AmazonShippingAccount" );
146+
147+ CarrierAccount carrierAccount = vcr .client .carrierAccount .create (data );
148+ testCarrierAccountId = carrierAccount .getId (); // trigger deletion after test
155149
156150 assertInstanceOf (CarrierAccount .class , carrierAccount );
157151 assertTrue (carrierAccount .getId ().startsWith ("ca_" ));
0 commit comments