Class RestoreContentPagePopulatorTest


  • @UnitTest
    public class RestoreContentPagePopulatorTest
    extends java.lang.Object
    • Constructor Detail

      • RestoreContentPagePopulatorTest

        public RestoreContentPagePopulatorTest()
    • Method Detail

      • 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()