Class CollectionToRepresentationConverterTest


  • @UnitTest
    public class CollectionToRepresentationConverterTest
    extends java.lang.Object
    • Constructor Detail

      • CollectionToRepresentationConverterTest

        public CollectionToRepresentationConverterTest()
    • Method Detail

      • setUp

        public void setUp()
      • givenNullCollection_WhenConvertIsCalled_ThenItReturnsNull

        public void givenNullCollection_WhenConvertIsCalled_ThenItReturnsNull()
      • givenCollection_WhenConvertIsCalled_ThenEachItemIsConvertedThroughTheTransformationFunction

        public void givenCollection_WhenConvertIsCalled_ThenEachItemIsConvertedThroughTheTransformationFunction()
      • givenCollection_WhenConvertIsCalled_AndOneItemReturnsNull_ThenOnlyNonNullItemsIsAdded

        public void givenCollection_WhenConvertIsCalled_AndOneItemReturnsNull_ThenOnlyNonNullItemsIsAdded()
      • givenInvalidParameter_WhenConvertIsCalled_ThenValidationExceptionIsTriggeredAndHandled

        public void givenInvalidParameter_WhenConvertIsCalled_ThenValidationExceptionIsTriggeredAndHandled()
      • givenNotSupportedParameter_WhenConvertIsCalled_ThenConversionExceptionIsTriggeredAndHandled

        public void givenNotSupportedParameter_WhenConvertIsCalled_ThenConversionExceptionIsTriggeredAndHandled()
      • WhenConvertIsCalled_AndThereIsAnExceptionThrown_ThenExceptionIsNotCaught

        public void WhenConvertIsCalled_AndThereIsAnExceptionThrown_ThenExceptionIsNotCaught()
      • throwExceptionWhenFunctionExecutes

        public void throwExceptionWhenFunctionExecutes​(java.lang.String parameter,
                                                       de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType)