use of com.paypal.infrastructure.sdk.mirakl.MiraklMarketplacePlatformOperatorApiWrapper in project mirakl-hyperwallet-connector by paypal.
the class InvoicesMiraklApiConfigTest method invoicesMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient.
@Test
void invoicesMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient() {
testObj.setEnvironment(ENV);
testObj.setOperatorApiKey(API_KEY);
final MiraklMarketplacePlatformOperatorApiWrapper result = testObj.invoicesMiraklMarketplacePlatformOperatorApiClient();
assertThat(result).hasFieldOrPropertyWithValue("defaultEndpoint.path", ENV).hasFieldOrPropertyWithValue("defaultHttpContext.map", Map.of("Authorization", API_KEY));
}
Aggregations