@UnitTest public class CollectionToRepresentationConverterTest extends java.lang.Object
| Constructor and Description |
|---|
CollectionToRepresentationConverterTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
givenCollection_WhenConvertIsCalled_AndOneItemReturnsNull_ThenOnlyNonNullItemsIsAdded() |
void |
givenCollection_WhenConvertIsCalled_ThenEachItemIsConvertedThroughTheTransformationFunction() |
void |
givenInvalidParameter_WhenConvertIsCalled_ThenValidationExceptionIsTriggeredAndHandled() |
void |
givenNotSupportedParameter_WhenConvertIsCalled_ThenConversionExceptionIsTriggeredAndHandled() |
void |
givenNullCollection_WhenConvertIsCalled_ThenItReturnsNull() |
void |
setUp() |
void |
throwExceptionWhenFunctionExecutes(java.lang.String parameter,
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType) |
void |
WhenConvertIsCalled_AndThereIsAnExceptionThrown_ThenExceptionIsNotCaught() |
public CollectionToRepresentationConverterTest()
public void setUp()
public void givenNullCollection_WhenConvertIsCalled_ThenItReturnsNull()
public void givenCollection_WhenConvertIsCalled_ThenEachItemIsConvertedThroughTheTransformationFunction()
public void givenCollection_WhenConvertIsCalled_AndOneItemReturnsNull_ThenOnlyNonNullItemsIsAdded()
public void givenInvalidParameter_WhenConvertIsCalled_ThenValidationExceptionIsTriggeredAndHandled()
public void givenNotSupportedParameter_WhenConvertIsCalled_ThenConversionExceptionIsTriggeredAndHandled()
public void WhenConvertIsCalled_AndThereIsAnExceptionThrown_ThenExceptionIsNotCaught()
public void throwExceptionWhenFunctionExecutes(java.lang.String parameter,
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.CollectionToRepresentationConverterTest.ExceptionType exceptionType)
Copyright © 2018 SAP SE. All Rights Reserved.