Search in sources :

Example 1 with MiraklMarketplacePlatformOperatorApiClient

use of com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient in project mirakl-hyperwallet-connector by paypal.

the class SellersMiraklApiConfigTest method miraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient.

@Test
void miraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient() {
    testObj.setEnvironment(ENV);
    testObj.setOperatorApiKey(API_KEY);
    final MiraklMarketplacePlatformOperatorApiClient result = testObj.sellersMiraklMarketplacePlatformOperatorApiClient();
    assertThat(result).hasFieldOrPropertyWithValue("defaultEndpoint.path", ENV).hasFieldOrPropertyWithValue("defaultHttpContext.map", Map.of("Authorization", API_KEY));
}
Also used : MiraklMarketplacePlatformOperatorApiClient(com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient) Test(org.junit.jupiter.api.Test)

Example 2 with MiraklMarketplacePlatformOperatorApiClient

use of com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient in project mirakl-hyperwallet-connector by paypal.

the class KYCMiraklApiConfigTest method kycMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient.

@Test
void kycMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient() {
    testObj.setEnvironment(ENV);
    testObj.setOperatorApiKey(API_KEY);
    final MiraklMarketplacePlatformOperatorApiClient result = testObj.kycMiraklMarketplacePlatformOperatorApiClient();
    assertThat(result).hasFieldOrPropertyWithValue("defaultEndpoint.path", ENV).hasFieldOrPropertyWithValue("defaultHttpContext.map", Map.of("Authorization", API_KEY));
}
Also used : MiraklMarketplacePlatformOperatorApiClient(com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient) Test(org.junit.jupiter.api.Test)

Example 3 with MiraklMarketplacePlatformOperatorApiClient

use of com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient in project mirakl-hyperwallet-connector by paypal.

the class ReportsMiraklApiConfigTest method reportsMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient.

@Test
void reportsMiraklMarketplacePlatformOperatorApiClient_shouldReturnWellFormedMiraklMarketplacePlatformOperatorApiClient() {
    testObj.setEnvironment(ENV);
    testObj.setOperatorApiKey(API_KEY);
    final MiraklMarketplacePlatformOperatorApiClient result = testObj.reportsMiraklMarketplacePlatformOperatorApiClient();
    assertThat(result).hasFieldOrPropertyWithValue("defaultEndpoint.path", ENV).hasFieldOrPropertyWithValue("defaultHttpContext.map", Map.of("Authorization", API_KEY));
}
Also used : MiraklMarketplacePlatformOperatorApiClient(com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient) Test(org.junit.jupiter.api.Test)

Aggregations

MiraklMarketplacePlatformOperatorApiClient (com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient)3 Test (org.junit.jupiter.api.Test)3