Class DefaultPageContentSlotComponentFacadeTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pagescontentslotscomponents.impl.DefaultPageContentSlotComponentFacadeTest
-
@UnitTest public class DefaultPageContentSlotComponentFacadeTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultPageContentSlotComponentFacadeTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
-
shouldAddComponentToContentSlot
public void shouldAddComponentToContentSlot() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailAddComponentToContentSlot_ValidationException
public void shouldFailAddComponentToContentSlot_ValidationException() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailAddComponentToContentSlot_SlotNotFound
public void shouldFailAddComponentToContentSlot_SlotNotFound() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailAddComponentToContentSlot_AmbiguousSlot
public void shouldFailAddComponentToContentSlot_AmbiguousSlot() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldRemoveComponent
public void shouldRemoveComponent() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailRemoveComponent_NotFoundComponent
public void shouldFailRemoveComponent_NotFoundComponent() throws CMSItemNotFoundException, ComponentNotFoundInSlotException
-
shouldFailRemoveComponentFromContentSlot_AmbiguousSlot
public void shouldFailRemoveComponentFromContentSlot_AmbiguousSlot() throws CMSItemNotFoundException, ComponentNotFoundInSlotException
-
shouldFailRemoveComponent_ComponentNotInSlot
public void shouldFailRemoveComponent_ComponentNotInSlot() throws CMSItemNotFoundException, ComponentNotFoundInSlotException
-
shouldMoveAComponentFromOneSlotToAnotherOne
public void shouldMoveAComponentFromOneSlotToAnotherOne() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldMoveAComponentWithinASlot
public void shouldMoveAComponentWithinASlot() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldThrowValidationExceptionWhenMovingAPageContentSlotComponentWithDataIssues
public void shouldThrowValidationExceptionWhenMovingAPageContentSlotComponentWithDataIssues() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldThrowValidationExceptionWhenMovingAComponentIntoASlotThatAlreadyHasAnInstance
public void shouldThrowValidationExceptionWhenMovingAComponentIntoASlotThatAlreadyHasAnInstance() throws java.lang.Exception- Throws:
java.lang.Exception
-
itShouldThrowCMSItemNotFoundExceptionWhenPassedInvalidComponentUid
public void itShouldThrowCMSItemNotFoundExceptionWhenPassedInvalidComponentUid() throws java.lang.Exception- Throws:
java.lang.Exception
-
getPageContentSlotComponentsByPageIdShouldReturnListOfPageContentSlotComponentsForValidPageUid
public void getPageContentSlotComponentsByPageIdShouldReturnListOfPageContentSlotComponentsForValidPageUid() throws java.lang.Exception- Throws:
java.lang.Exception
-
getPageContentSlotComponentsByPageIdShouldThrowExceptionForInvalidPageUid
public void getPageContentSlotComponentsByPageIdShouldThrowExceptionForInvalidPageUid() throws java.lang.Exception- Throws:
java.lang.Exception
-
buildPageContentSlotComponent
protected PageContentSlotComponentData buildPageContentSlotComponent()
-
-