Class RestoreContentPagePopulatorTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.populators.RestoreContentPagePopulatorTest
-
@UnitTest public class RestoreContentPagePopulatorTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RestoreContentPagePopulatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureContentPage(CmsPageStatus pageStatus, boolean isDefaultPage, boolean isHomepage)voidgivenPageWillReplaceAnExistingHomePage_WhenPopulated_ItMustSwapTheExistingHomepage()voidgivenPageWillReplaceAnExistingPage_WhenPopulated_ItMustNotSwapTheExistingHomepage()protected voidsetCurrentPageAsDuplicate()voidtestShouldDoNothingWhenReplacePropertyIsFalse()voidtestShouldDoNothingWhenReplacePropertyIsNotProvided()voidtestShouldDoNothingWhenReplacePropertyIsTrueAndNoPrimaryWithLabelExists()voidtestShouldFindPrimaryPageAndMarkItDeletedWhenReplacePropertyIsTrueAndAPrimaryWithLabelExists()voidtestWhenItemModelIsNull_should_ThrowException()voidtestWhenMapIsNull_should_ThrowException()
-
-
-
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()
-
-