Class ContentSlotCloningStrategyTest
- java.lang.Object
-
- de.hybris.platform.cms2.cloning.strategy.impl.ContentSlotCloningStrategyTest
-
@UnitTest public class ContentSlotCloningStrategyTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentSlotModelclonedContentSlotModel
-
Constructor Summary
Constructors Constructor Description ContentSlotCloningStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldCloneComponentsInsideNewSlot()voidshouldCreateCustomComponent()voidshouldCreateLocalComponent()voidshouldFailCloneWhenContextIsEmpty()voidshouldFailCloneWhenPageNotInContext()voidshouldFailCloneWhenTemplateIsEmpty()voidshouldReferenceComponentsInsideNewSlot()voidshouldRemoveComponentsInsideNewSlot()voidshouldThrowExceptionIfNewCustomSLotPositionIsTaken()
-
-
-
Field Detail
-
clonedContentSlotModel
@Mock protected ContentSlotModel clonedContentSlotModel
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFailCloneWhenTemplateIsEmpty
public void shouldFailCloneWhenTemplateIsEmpty() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailCloneWhenContextIsEmpty
public void shouldFailCloneWhenContextIsEmpty() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailCloneWhenPageNotInContext
public void shouldFailCloneWhenPageNotInContext() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldCreateCustomComponent
public void shouldCreateCustomComponent() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldCreateLocalComponent
public void shouldCreateLocalComponent() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldCloneComponentsInsideNewSlot
public void shouldCloneComponentsInsideNewSlot() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldRemoveComponentsInsideNewSlot
public void shouldRemoveComponentsInsideNewSlot() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldReferenceComponentsInsideNewSlot
public void shouldReferenceComponentsInsideNewSlot() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldThrowExceptionIfNewCustomSLotPositionIsTaken
public void shouldThrowExceptionIfNewCustomSLotPositionIsTaken() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
-