Class DefaultCMSActivateBaseSiteInSessionStrategyTest
java.lang.Object
de.hybris.platform.cms2.strategies.impl.DefaultCMSActivateBaseSiteInSessionStrategyTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprepare()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidAssures if no interaction withCMSSiteService.setCurrentSite(CMSSiteModel)andCMSSiteService.setCurrentCatalogVersion(CatalogVersionModel)was recorded.
-
Constructor Details
-
DefaultCMSActivateBaseSiteInSessionStrategyTest
public DefaultCMSActivateBaseSiteInSessionStrategyTest()
-
-
Method Details
-
prepare
public void prepare() -
testNullSite
public void testNullSite() -
testThrowAnExceptionWhenNoStoreForSite
public void testThrowAnExceptionWhenNoStoreForSite() -
testThrowAnExceptionWhenNotEmptyContentCatalogs
- Throws:
BusinessException
-
testFewStoresForSiteNoActiveCatalogVersion
public void testFewStoresForSiteNoActiveCatalogVersion() -
testShouldThrowAnExceptionForFewStoresForSite
- Throws:
BusinessException
-
testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected
public void testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected
public void testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
testCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected
- Throws:
BusinessException
-
testCurrentCMSSiteNotEqualsGivenSiteWith
- Throws:
BusinessException
-
testCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected
- Throws:
BusinessException
-
throwExceptionIfInteraction
Assures if no interaction withCMSSiteService.setCurrentSite(CMSSiteModel)andCMSSiteService.setCurrentCatalogVersion(CatalogVersionModel)was recorded. It is up to you to handle this in the test- Throws:
CMSItemNotFoundException
-