@UnitTest public class PageCloningStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
PageCloningStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractCMSComponentModel |
generateMockCmsComponentModel()
Generates a CMS component model mock.
|
protected ContentSlotModel |
generateMockContentSlotModel()
Generates a content slot model mock.
|
void |
setUp() |
void |
shouldClone() |
void |
shouldCloneContentSlotAndCloneComponents() |
void |
shouldClonePageAndRemoveIdenticalPrimaryPage() |
void |
shouldClonePreviewImage() |
void |
shouldFailCloneWhenContextIsNull() |
void |
shouldFailCloneWhenTemplateIsEmpty() |
void |
shouldFailCloneWhenTemplateIsNull() |
void |
shouldNotCloneUndefinedPreviewImage() |
public void setUp()
public void shouldFailCloneWhenTemplateIsNull()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailCloneWhenTemplateIsEmpty()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailCloneWhenContextIsNull()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldClone()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldClonePageAndRemoveIdenticalPrimaryPage()
public void shouldClonePreviewImage()
public void shouldNotCloneUndefinedPreviewImage()
public void shouldCloneContentSlotAndCloneComponents()
protected ContentSlotModel generateMockContentSlotModel()
protected AbstractCMSComponentModel generateMockCmsComponentModel()
Copyright © 2018 SAP SE. All Rights Reserved.