@UnitTest public class OfferDiscoveryServiceTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
APPLICATION_JSON |
protected static java.lang.String |
COMMUNICATION_MEDIUM |
protected static java.lang.String |
CONTEXT_PARAM_COMMUNICATION_MEDIUM |
protected static java.lang.String |
CONTEXT_PARAM_LANGUAGE |
protected static java.lang.String |
CONTEXT_PARAM_POSITION |
protected static java.lang.String |
RECOMMENDATIONS |
| Constructor and Description |
|---|
OfferDiscoveryServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
createOfferRecommendationScenarioTestContextParams()
Validates the context params creation
|
void |
createOfferRecommendationScenarioTestWhenCartItemDSTypeIsBlank() |
void |
createOfferRecommendationScenarioTestWhenCartItemDSTypeIsNotBlank() |
void |
createOfferRecommendationScenarioTestWhenIncludeCartIsFalse()
Testing the includeCart() = false logic
|
void |
createOfferRecommendationScenarioTestWhenIncludeCartIsTrue()
Testing the includeCart() = true logic
|
void |
createOfferRecommendationScenarioTestWhenIncludeRecentIsFalse() |
void |
createOfferRecommendationScenarioTestWhenIncludeRecentIsTrue() |
void |
setUp() |
protected static final java.lang.String APPLICATION_JSON
protected static final java.lang.String RECOMMENDATIONS
protected static final java.lang.String COMMUNICATION_MEDIUM
protected static final java.lang.String CONTEXT_PARAM_COMMUNICATION_MEDIUM
protected static final java.lang.String CONTEXT_PARAM_LANGUAGE
protected static final java.lang.String CONTEXT_PARAM_POSITION
public void setUp()
public void createOfferRecommendationScenarioTestWhenIncludeCartIsFalse()
public void createOfferRecommendationScenarioTestWhenIncludeCartIsTrue()
public void createOfferRecommendationScenarioTestWhenCartItemDSTypeIsNotBlank()
public void createOfferRecommendationScenarioTestWhenCartItemDSTypeIsBlank()
public void createOfferRecommendationScenarioTestWhenIncludeRecentIsTrue()
public void createOfferRecommendationScenarioTestWhenIncludeRecentIsFalse()
public void createOfferRecommendationScenarioTestContextParams()
Copyright © 2018 SAP SE. All Rights Reserved.