Class RestoreContentPagePopulatorTest

java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.populators.RestoreContentPagePopulatorTest

@UnitTest public class RestoreContentPagePopulatorTest extends Object
  • Constructor Details

    • RestoreContentPagePopulatorTest

      public RestoreContentPagePopulatorTest()
  • Method Details

    • testWhenItemModelIsNull_should_ThrowException

      public void testWhenItemModelIsNull_should_ThrowException()
    • testWhenMapIsNull_should_ThrowException

      public void testWhenMapIsNull_should_ThrowException()
    • testShouldDoNothingWhenReplacePropertyIsNotProvided

      public void testShouldDoNothingWhenReplacePropertyIsNotProvided()
    • testShouldDoNothingWhenReplacePropertyIsFalse

      public void testShouldDoNothingWhenReplacePropertyIsFalse()
    • testShouldDoNothingWhenReplacePropertyIsTrueAndNoPrimaryWithLabelExists

      public void testShouldDoNothingWhenReplacePropertyIsTrueAndNoPrimaryWithLabelExists()
    • testShouldFindPrimaryPageAndMarkItDeletedWhenReplacePropertyIsTrueAndAPrimaryWithLabelExists

      public void testShouldFindPrimaryPageAndMarkItDeletedWhenReplacePropertyIsTrueAndAPrimaryWithLabelExists()
    • givenPageWillReplaceAnExistingHomePage_WhenPopulated_ItMustSwapTheExistingHomepage

      public void givenPageWillReplaceAnExistingHomePage_WhenPopulated_ItMustSwapTheExistingHomepage()
    • givenPageWillReplaceAnExistingPage_WhenPopulated_ItMustNotSwapTheExistingHomepage

      public void givenPageWillReplaceAnExistingPage_WhenPopulated_ItMustNotSwapTheExistingHomepage()
    • configureContentPage

      protected void configureContentPage(CmsPageStatus pageStatus, boolean isDefaultPage, boolean isHomepage)
    • setCurrentPageAsDuplicate

      protected void setCurrentPageAsDuplicate()