Search in sources :

Example 1 with MiraklMarketplacePlatformOperatorApiWrapper

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));
}
Also used : MiraklMarketplacePlatformOperatorApiWrapper(com.paypal.infrastructure.sdk.mirakl.MiraklMarketplacePlatformOperatorApiWrapper) Test(org.junit.jupiter.api.Test)

Aggregations

MiraklMarketplacePlatformOperatorApiWrapper (com.paypal.infrastructure.sdk.mirakl.MiraklMarketplacePlatformOperatorApiWrapper)1 Test (org.junit.jupiter.api.Test)1