Class CollectionToRepresentationConverterTest
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidsetUp()voidthrowExceptionWhenFunctionExecutes(String parameter, de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType) void
-
Constructor Details
-
CollectionToRepresentationConverterTest
public CollectionToRepresentationConverterTest()
-
-
Method Details
-
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(String parameter, de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType)
-