Class CollectionToRepresentationConverterTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest
-
@UnitTest public class CollectionToRepresentationConverterTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CollectionToRepresentationConverterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgivenCollection_WhenConvertIsCalled_AndOneItemReturnsNull_ThenOnlyNonNullItemsIsAdded()voidgivenCollection_WhenConvertIsCalled_ThenEachItemIsConvertedThroughTheTransformationFunction()voidgivenInvalidParameter_WhenConvertIsCalled_ThenValidationExceptionIsTriggeredAndHandled()voidgivenNotSupportedParameter_WhenConvertIsCalled_ThenConversionExceptionIsTriggeredAndHandled()voidgivenNullCollection_WhenConvertIsCalled_ThenItReturnsNull()voidsetUp()voidthrowExceptionWhenFunctionExecutes(java.lang.String parameter, de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType)voidWhenConvertIsCalled_AndThereIsAnExceptionThrown_ThenExceptionIsNotCaught()
-
-
-
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)
-
-