Class ConfigurationOverviewValuePopulatorTest
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.populator.ConfigurationOverviewValuePopulatorTest
-
@UnitTest public class ConfigurationOverviewValuePopulatorTest extends java.lang.Object
Unit tests
-
-
Field Summary
Fields Modifier and Type Field Description ConfigurationOverviewValuePopulatorclassUnderTestCsticModelcsticstatic java.lang.StringCSTIC_LAN_DEPENDENT_NAMEstatic java.lang.StringCSTIC_NAMEstatic java.lang.StringDISCOUNT_TEXTstatic java.util.DateEND_DATEstatic java.lang.StringEND_DATE_TEXTstatic java.lang.StringHYBRIS_CSTIC_LAN_DEPENDENT_NAMEstatic java.lang.StringHYBRIS_VALUE_LAN_DEPENDENT_NAMEConfigPricingImplmockConfigPricingUiTypeFindermockUiTypeFinderValueFormatTranslatormockValueFormatTranslatorPriceModelmockValuePricestatic java.lang.StringOBSOLETE_PRICEPriceDataobsoletePricejava.util.Collection<java.util.Map>optionsPriceDatapricestatic java.lang.StringPRICEProductConfigMessageBuilderproductConfigMessageBuilderstatic java.lang.StringPROMO_TEXTCsticValueModelsourceCharacteristicValuetargetstatic java.lang.StringVALUE_LAN_DEPENDENT_NAMEstatic java.lang.StringVALUE_NAME
-
Constructor Summary
Constructors Constructor Description ConfigurationOverviewValuePopulatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestGetCsticPriceDescription()voidtestGetCsticPriceDescriptionNoPriceValue()voidtestGetCsticPriceDescriptionNullValue()voidtestHybrisNames()voidtestLangDependentNameNotNullAndNameNotNull()voidtestLangDependentNameNotNullAndNameNull()voidtestLangDependentNameNullAndNameNotNull()voidtestLangDependentNameNullAndNameNull()voidtestNoConfigPrice()voidtestObsoletePrice()voidtestProcessMessage()voidtestProcessMessages()voidtestProcessMessagesNullList()voidtestProcessMessagesWithoutPromoType()voidtestProcessMessageWithoutDate()voidtestProductConfigMessages()voidtestProductConfigMessagesNoPrice()voidtestValuePrice()
-
-
-
Field Detail
-
mockConfigPricing
@Mock public ConfigPricingImpl mockConfigPricing
-
mockValuePrice
@Mock public PriceModel mockValuePrice
-
mockValueFormatTranslator
@Mock public ValueFormatTranslator mockValueFormatTranslator
-
mockUiTypeFinder
@Mock public UiTypeFinder mockUiTypeFinder
-
classUnderTest
@InjectMocks public ConfigurationOverviewValuePopulator classUnderTest
-
source
public CsticValueModel source
-
target
public CharacteristicValue target
-
price
public PriceData price
-
obsoletePrice
public PriceData obsoletePrice
-
cstic
public CsticModel cstic
-
options
public java.util.Collection<java.util.Map> options
-
DISCOUNT_TEXT
public static final java.lang.String DISCOUNT_TEXT
- See Also:
- Constant Field Values
-
END_DATE_TEXT
public static final java.lang.String END_DATE_TEXT
- See Also:
- Constant Field Values
-
PROMO_TEXT
public static final java.lang.String PROMO_TEXT
- See Also:
- Constant Field Values
-
END_DATE
public static java.util.Date END_DATE
-
CSTIC_NAME
public static final java.lang.String CSTIC_NAME
- See Also:
- Constant Field Values
-
CSTIC_LAN_DEPENDENT_NAME
public static final java.lang.String CSTIC_LAN_DEPENDENT_NAME
- See Also:
- Constant Field Values
-
VALUE_NAME
public static final java.lang.String VALUE_NAME
- See Also:
- Constant Field Values
-
VALUE_LAN_DEPENDENT_NAME
public static final java.lang.String VALUE_LAN_DEPENDENT_NAME
- See Also:
- Constant Field Values
-
HYBRIS_CSTIC_LAN_DEPENDENT_NAME
public static final java.lang.String HYBRIS_CSTIC_LAN_DEPENDENT_NAME
- See Also:
- Constant Field Values
-
HYBRIS_VALUE_LAN_DEPENDENT_NAME
public static final java.lang.String HYBRIS_VALUE_LAN_DEPENDENT_NAME
- See Also:
- Constant Field Values
-
PRICE
public static final java.lang.String PRICE
- See Also:
- Constant Field Values
-
OBSOLETE_PRICE
public static final java.lang.String OBSOLETE_PRICE
- See Also:
- Constant Field Values
-
productConfigMessageBuilder
public ProductConfigMessageBuilder productConfigMessageBuilder
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testLangDependentNameNotNullAndNameNull
public void testLangDependentNameNotNullAndNameNull()
-
testLangDependentNameNullAndNameNull
public void testLangDependentNameNullAndNameNull()
-
testLangDependentNameNullAndNameNotNull
public void testLangDependentNameNullAndNameNotNull()
-
testLangDependentNameNotNullAndNameNotNull
public void testLangDependentNameNotNullAndNameNotNull()
-
testNoConfigPrice
public void testNoConfigPrice()
-
testProductConfigMessages
public void testProductConfigMessages()
-
testProductConfigMessagesNoPrice
public void testProductConfigMessagesNoPrice()
-
testValuePrice
public void testValuePrice()
-
testObsoletePrice
public void testObsoletePrice()
-
testGetCsticPriceDescription
public void testGetCsticPriceDescription()
-
testGetCsticPriceDescriptionNullValue
public void testGetCsticPriceDescriptionNullValue()
-
testGetCsticPriceDescriptionNoPriceValue
public void testGetCsticPriceDescriptionNoPriceValue()
-
testHybrisNames
public void testHybrisNames()
-
testProcessMessageWithoutDate
public void testProcessMessageWithoutDate()
-
testProcessMessage
public void testProcessMessage() throws java.lang.Exception- Throws:
java.lang.Exception
-
testProcessMessages
public void testProcessMessages()
-
testProcessMessagesNullList
public void testProcessMessagesNullList()
-
testProcessMessagesWithoutPromoType
public void testProcessMessagesWithoutPromoType()
-
-