Class PageCloningStrategyTest

java.lang.Object
de.hybris.platform.cms2.cloning.strategy.impl.PageCloningStrategyTest

@UnitTest public class PageCloningStrategyTest extends Object
  • Constructor Details

    • PageCloningStrategyTest

      public PageCloningStrategyTest()
  • Method Details

    • setUp

      public void setUp()
    • shouldFailCloneWhenTemplateIsEmpty

      public void shouldFailCloneWhenTemplateIsEmpty() 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