@UnitTest public class DefaultCMSAdminContentSlotServiceTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultCMSAdminContentSlotServiceTest() |
public DefaultCMSAdminContentSlotServiceTest()
protected java.util.List<ContentSlotForPageModel> generateContentSlotForPageModelMocks()
protected java.util.List<ContentSlotForTemplateModel> generateContentSlotForTemplateModelMocks(boolean isOverlapExpected)
withPositions - true if the template slots should have a position parameter to test the filtering out of custom content
slots on the pageprotected int calculateNumberExpectedContentSlotsForPage(int contentSlotsForPageCount,
int contentSlotsForTemplateCount,
boolean isOverlapExpected)
contentSlotsForPageCount - the number of content slots on the pagecontentSlotsForTemplateCount - the number of content slots on the templateisOverlapExpected - true if there are custom content slots on the page that override the slot on the template, false
otherwisepublic void setUp()
public void willCreateAndAssignSlotsToThePositionsNotBusyWithSharedSlots()
public void willReturnOnlyContentSlotsForPage()
public void willReturnContentSlotsForPageAndForMasterTemplate()
public void willReturnCustomContentSlotsInTemplateSlotPositions()
public void willReturnCustomContentSlotsInTemplateSlotPositionsAndSetOverrideToTrue()
public void willReturnPositionOfContentSlotFromPage()
public void willReturnPositionOfContentSlotFromPageTemplate()
public void shouldThrowTypePermissionExceptionWhenAddComponentToSlotAndIfSlotDoesNotHaveChangePermission()
public void shouldThrowTypePermissionExceptionWhenUpdateComponentPositionInSlotAndIfSlotDoesNotHaveChangePermission()
Copyright © 2018 SAP SE. All Rights Reserved.