Class PageCloningStrategyTest
- java.lang.Object
-
- de.hybris.platform.cms2.cloning.strategy.impl.PageCloningStrategyTest
-
@UnitTest public class PageCloningStrategyTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PageCloningStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractCMSComponentModelgenerateMockCmsComponentModel()Generates a CMS component model mock.protected ContentSlotModelgenerateMockContentSlotModel()Generates a content slot model mock.voidsetUp()voidshouldClone()voidshouldCloneContentSlotAndCloneComponents()voidshouldClonePageAndRemoveIdenticalPrimaryPage()voidshouldClonePreviewImage()voidshouldFailCloneWhenContextIsNull()voidshouldFailCloneWhenTemplateIsEmpty()voidshouldFailCloneWhenTemplateIsNull()voidshouldNotCloneUndefinedPreviewImage()
-
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFailCloneWhenTemplateIsNull
public void shouldFailCloneWhenTemplateIsNull() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailCloneWhenTemplateIsEmpty
public void shouldFailCloneWhenTemplateIsEmpty() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailCloneWhenContextIsNull
public void shouldFailCloneWhenContextIsNull() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldClone
public void shouldClone() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldClonePageAndRemoveIdenticalPrimaryPage
public void shouldClonePageAndRemoveIdenticalPrimaryPage()
-
shouldClonePreviewImage
public void shouldClonePreviewImage()
-
shouldNotCloneUndefinedPreviewImage
public void shouldNotCloneUndefinedPreviewImage()
-
shouldCloneContentSlotAndCloneComponents
public void shouldCloneContentSlotAndCloneComponents()
-
generateMockContentSlotModel
protected ContentSlotModel generateMockContentSlotModel()
Generates a content slot model mock.- Returns:
- the mocked content slot model
-
generateMockCmsComponentModel
protected AbstractCMSComponentModel generateMockCmsComponentModel()
Generates a CMS component model mock.- Returns:
- the mocked CMS component model
-
-