Class DefaultComponentRenderingServiceTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.rendering.impl.DefaultComponentRenderingServiceTest
-
@UnitTest public class DefaultComponentRenderingServiceTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCATALOG_CODEstatic java.lang.StringCATEGORY_CODEstatic java.lang.StringCOMPONENT_UIDstatic java.lang.StringPRODUCT_CODE
-
Constructor Summary
Constructors Constructor Description DefaultComponentRenderingServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldFailGetComponentByIdWithNotFoundError()voidshouldFailGetComponentByIdWithValidationError()voidshouldFailGetComponentsByIdsWithValidationError()voidshouldGetAllComponents()voidshouldGetComponentById()voidshouldGetComponentData()voidshouldGetComponentsByIds()voidshouldGetEmptyComponentDataWhenComponentIsNotVisible()voidshouldGetZeroComponentsByIdsWhenItemsNotFound()
-
-
-
Field Detail
-
COMPONENT_UID
public static final java.lang.String COMPONENT_UID
- See Also:
- Constant Field Values
-
CATALOG_CODE
public static final java.lang.String CATALOG_CODE
- See Also:
- Constant Field Values
-
CATEGORY_CODE
public static final java.lang.String CATEGORY_CODE
- See Also:
- Constant Field Values
-
PRODUCT_CODE
public static final java.lang.String PRODUCT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFailGetComponentByIdWithValidationError
public void shouldFailGetComponentByIdWithValidationError() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailGetComponentByIdWithNotFoundError
public void shouldFailGetComponentByIdWithNotFoundError() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetComponentById
public void shouldGetComponentById() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetComponentData
public void shouldGetComponentData()
-
shouldGetEmptyComponentDataWhenComponentIsNotVisible
public void shouldGetEmptyComponentDataWhenComponentIsNotVisible()
-
shouldFailGetComponentsByIdsWithValidationError
public void shouldFailGetComponentsByIdsWithValidationError() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetZeroComponentsByIdsWhenItemsNotFound
public void shouldGetZeroComponentsByIdsWhenItemsNotFound() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetComponentsByIds
public void shouldGetComponentsByIds() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldGetAllComponents
public void shouldGetAllComponents() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
-