Class DefaultAttributeValueToRepresentationStrategyTest
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.converter.DefaultAttributeValueToRepresentationStrategyTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddModelToValueMapping(ItemModel source, Object returnValue) protected voidaddModelToValueMapping(ItemModel source, Locale locale, Object returnValue) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()protected voidvoidthrowExceptionWhenFunctionExecutes(String parameter, de.hybris.platform.cmsfacades.cmsitems.converter.DefaultAttributeValueToRepresentationStrategyTest.ExceptionType exceptionType) void
-
Constructor Details
-
DefaultAttributeValueToRepresentationStrategyTest
public DefaultAttributeValueToRepresentationStrategyTest()
-
-
Method Details
-
setUp
public void setUp() -
givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation
public void givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation() -
givenCollectionAttribute_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations
public void givenCollectionAttribute_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations() -
givenLocalizedItem_WhenCalled_ThenItReturnsMapWithRepresentationForEachLanguage
public void givenLocalizedItem_WhenCalled_ThenItReturnsMapWithRepresentationForEachLanguage() -
givenLocalizedCollection_WhenCalled_ThenItReturnsMapWithTransformedCollectionForEachLanguage
public void givenLocalizedCollection_WhenCalled_ThenItReturnsMapWithTransformedCollectionForEachLanguage() -
givenEmptyMap_WhenConvertLocalizedValueIsCalled_ThenItReturnsEmptyMap
public void givenEmptyMap_WhenConvertLocalizedValueIsCalled_ThenItReturnsEmptyMap() -
givenMap_WhenConvertLocalizedValueIsCalled_ThenTheValueForEachValueIsTransformed
public void givenMap_WhenConvertLocalizedValueIsCalled_ThenTheValueForEachValueIsTransformed() -
givenInvalidParameter_WhenConvertLocalizedValueIsCalled_ThenTheValidationExceptionIsTriggeredAndHandled
public void givenInvalidParameter_WhenConvertLocalizedValueIsCalled_ThenTheValidationExceptionIsTriggeredAndHandled() -
givenNotSupportedParameter_WhenConvertLocalizedValueIsCalled_ThenTheConversionExceptionIsTriggeredAndHandled
public void givenNotSupportedParameter_WhenConvertLocalizedValueIsCalled_ThenTheConversionExceptionIsTriggeredAndHandled() -
WhenConvertLocalizedValueIsCalled_AndThereIsAnException_ThenExceptionIsNotCaught
public void WhenConvertLocalizedValueIsCalled_AndThereIsAnException_ThenExceptionIsNotCaught() -
GivenCloneComponentContextProviderIsInitialized_WhenConvertLocalizedValueIsCalled_ThenItInitializesTheItemInThatContext
public void GivenCloneComponentContextProviderIsInitialized_WhenConvertLocalizedValueIsCalled_ThenItInitializesTheItemInThatContext() -
GivenCloneComponentContextProviderIsNotInitialized_WhenConvertLocalizedValueIsCalled_ThenItDoesNotInitializeTheItem
public void GivenCloneComponentContextProviderIsNotInitialized_WhenConvertLocalizedValueIsCalled_ThenItDoesNotInitializeTheItem() -
addModelToValueMapping
-
addModelToValueMapping
-
setUpLanguageValueMap
protected void setUpLanguageValueMap() -
throwExceptionWhenFunctionExecutes
public void throwExceptionWhenFunctionExecutes(String parameter, de.hybris.platform.cmsfacades.cmsitems.converter.DefaultAttributeValueToRepresentationStrategyTest.ExceptionType exceptionType)
-