@UnitTest public class DefaultPageContentSlotComponentFacadeTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultPageContentSlotComponentFacadeTest() |
public DefaultPageContentSlotComponentFacadeTest()
public void setUp()
public void shouldAddComponentToContentSlot()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailAddComponentToContentSlot_ValidationException()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailAddComponentToContentSlot_SlotNotFound()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailAddComponentToContentSlot_AmbiguousSlot()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldRemoveComponent()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailRemoveComponent_NotFoundComponent()
throws CMSItemNotFoundException,
ComponentNotFoundInSlotException
public void shouldFailRemoveComponentFromContentSlot_AmbiguousSlot()
throws CMSItemNotFoundException,
ComponentNotFoundInSlotException
public void shouldFailRemoveComponent_ComponentNotInSlot()
throws CMSItemNotFoundException,
ComponentNotFoundInSlotException
public void shouldMoveAComponentFromOneSlotToAnotherOne()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldMoveAComponentWithinASlot()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowValidationExceptionWhenMovingAPageContentSlotComponentWithDataIssues()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowValidationExceptionWhenMovingAComponentIntoASlotThatAlreadyHasAnInstance()
throws java.lang.Exception
java.lang.Exceptionpublic void itShouldThrowCMSItemNotFoundExceptionWhenPassedInvalidComponentUid()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageContentSlotComponentsByPageIdShouldReturnListOfPageContentSlotComponentsForValidPageUid()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageContentSlotComponentsByPageIdShouldThrowExceptionForInvalidPageUid()
throws java.lang.Exception
java.lang.Exceptionprotected PageContentSlotComponentData buildPageContentSlotComponent()
Copyright © 2018 SAP SE. All Rights Reserved.