@UnitTest public class DefaultAttributeValueToRepresentationStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultAttributeValueToRepresentationStrategyTest() |
public DefaultAttributeValueToRepresentationStrategyTest()
public void setUp()
public void givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation()
public void givenCollectionAttribute_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations()
public void givenLocalizedItem_WhenCalled_ThenItReturnsMapWithRepresentationForEachLanguage()
public void givenLocalizedCollection_WhenCalled_ThenItReturnsMapWithTransformedCollectionForEachLanguage()
public void givenEmptyMap_WhenConvertLocalizedValueIsCalled_ThenItReturnsNull()
public void givenMap_WhenConvertLocalizedValueIsCalled_ThenTheValueForEachValueIsTransformed()
public void givenInvalidParameter_WhenConvertLocalizedValueIsCalled_ThenTheValidationExceptionIsTriggeredAndHandled()
public void givenNotSupportedParameter_WhenConvertLocalizedValueIsCalled_ThenTheConversionExceptionIsTriggeredAndHandled()
public void WhenConvertLocalizedValueIsCalled_AndThereIsAnException_ThenExceptionIsNotCaught()
public void GivenCloneComponentContextProviderIsInitialized_WhenConvertLocalizedValueIsCalled_ThenItInitializesTheItemInThatContext()
public void GivenCloneComponentContextProviderIsNotInitialized_WhenConvertLocalizedValueIsCalled_ThenItDoesNotInitializeTheItem()
protected void addModelToValueMapping(ItemModel source, java.lang.Object returnValue)
protected void addModelToValueMapping(ItemModel source, java.util.Locale locale, java.lang.Object returnValue)
protected void setUpLanguageValueMap()
public void throwExceptionWhenFunctionExecutes(java.lang.String parameter,
de.hybris.platform.cmsfacades.cmsitems.converter.DefaultAttributeValueToRepresentationStrategyTest.ExceptionType exceptionType)
Copyright © 2018 SAP SE. All Rights Reserved.