Class RenderingAttributeValueToRepresentationStrategyTest

java.lang.Object
de.hybris.platform.cmsfacades.rendering.strategies.RenderingAttributeValueToRepresentationStrategyTest

@UnitTest public class RenderingAttributeValueToRepresentationStrategyTest extends Object
  • Constructor Details

    • RenderingAttributeValueToRepresentationStrategyTest

      public RenderingAttributeValueToRepresentationStrategyTest()
  • Method Details

    • setUp

      public void setUp()
    • givenNullValue_whenGetElementToRenderingDataTransformationFunctionIsCalled_ItReturnsNull

      public void givenNullValue_whenGetElementToRenderingDataTransformationFunctionIsCalled_ItReturnsNull()
    • givenNonCmsComponent_WhenElementTransformationFunctionIsCalled_ItCallsTheProvidedTransformationFunction

      public void givenNonCmsComponent_WhenElementTransformationFunctionIsCalled_ItCallsTheProvidedTransformationFunction()
    • givenVisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItCallsTheComponentRenderingConverterDirectly

      public void givenVisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItCallsTheComponentRenderingConverterDirectly()
    • givenInvisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItReturnsNull

      public void givenInvisibleCmsComponent_WhenElementTransformationFunctionIsCalled_ThenItReturnsNull()
    • givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation

      public void givenSimpleAttribute_WhenCalled_ThenItReturnsItsSimpleRepresentation()
    • givenCollectionAttributeWithCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations

      public void givenCollectionAttributeWithCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations()
    • givenCollectionAttributeWithNoCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations

      public void givenCollectionAttributeWithNoCmsComponents_WhenCalled_ThenItReturnsACollectionOfSimpleRepresentations()
    • givenLocalizedValue_WhenCalled_ThenItReturnsItsRepresentationForTheCurrentLocale

      public void givenLocalizedValue_WhenCalled_ThenItReturnsItsRepresentationForTheCurrentLocale()
    • givenLocalizedCollection_WhenCalled_ThenItReturnsTheCollectionRepresentationForTheCurrentLocale

      public void givenLocalizedCollection_WhenCalled_ThenItReturnsTheCollectionRepresentationForTheCurrentLocale()
    • addModelToValueMapping

      protected void addModelToValueMapping(ItemModel source, Object returnValue)
    • markComponentAsDisallowed

      protected void markComponentAsDisallowed(AbstractCMSComponentModel component)