@UnitTest public class RenderingAttributeValueToRepresentationStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
RenderingAttributeValueToRepresentationStrategyTest() |
public RenderingAttributeValueToRepresentationStrategyTest()
public void setUp()
public void givenNullValue_whenGetElementToRenderingDataTransformationFunctionIsCalled_ItReturnsNull()
public void givenNonCmsComponent_WhenElementTransformationFunctionIsCalled_ItCallsTheProvidedTransformationFunction()
public void givenVisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItCallsTheComponentRenderingConverterDirectly()
public void givenInvisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItReturnsNull()
public void givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation()
public void givenCollectionAttributeWithCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations()
public void givenCollectionAttributeWithNoCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations()
public void givenLocalizedValue_WhenCalled_ThenItReturnsItsRepresentationForTheCurrentLocale()
public void givenLocalizedCollection_WhenCalled_ThenItReturnsTheCollectionRepresentationForTheCurrentLocale()
protected void addModelToValueMapping(ItemModel source, java.lang.Object returnValue)
protected void markComponentAsDisallowed(AbstractCMSComponentModel component)
Copyright © 2018 SAP SE. All Rights Reserved.