Class DefaultCMSActivateBaseSiteInSessionStrategyTest
- java.lang.Object
-
- de.hybris.platform.cms2.strategies.impl.DefaultCMSActivateBaseSiteInSessionStrategyTest
-
@UnitTest public class DefaultCMSActivateBaseSiteInSessionStrategyTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSActivateBaseSiteInSessionStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepare()voidtestCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected()voidtestCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected()voidtestCurrentCMSSiteNotEqualsGivenSiteWith()voidtestFewStoresForSiteNoActiveCatalogVersion()voidtestNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected()voidtestNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected()voidtestNullSite()voidtestShouldThrowAnExceptionForFewStoresForSite()voidtestThrowAnExceptionWhenNoStoreForSite()voidtestThrowAnExceptionWhenNotEmptyContentCatalogs()protected voidthrowExceptionIfInteraction()Assures if no interaction withCMSSiteService.setCurrentSite(CMSSiteModel)andCMSSiteService.setCurrentCatalogVersion(CatalogVersionModel)was recorded.
-
-
-
Method Detail
-
prepare
public void prepare()
-
testNullSite
public void testNullSite()
-
testThrowAnExceptionWhenNoStoreForSite
public void testThrowAnExceptionWhenNoStoreForSite()
-
testThrowAnExceptionWhenNotEmptyContentCatalogs
public void testThrowAnExceptionWhenNotEmptyContentCatalogs() throws BusinessException- Throws:
BusinessException
-
testFewStoresForSiteNoActiveCatalogVersion
public void testFewStoresForSiteNoActiveCatalogVersion()
-
testShouldThrowAnExceptionForFewStoresForSite
public void testShouldThrowAnExceptionForFewStoresForSite() throws BusinessException- Throws:
BusinessException
-
testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected
public void testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected
public void testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
testCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected
public void testCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
testCurrentCMSSiteNotEqualsGivenSiteWith
public void testCurrentCMSSiteNotEqualsGivenSiteWith() throws BusinessException- Throws:
BusinessException
-
testCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected
public void testCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected() throws BusinessException- Throws:
BusinessException
-
throwExceptionIfInteraction
protected void throwExceptionIfInteraction() throws CMSItemNotFoundExceptionAssures if no interaction withCMSSiteService.setCurrentSite(CMSSiteModel)andCMSSiteService.setCurrentCatalogVersion(CatalogVersionModel)was recorded. It is up to you to handle this in the test- Throws:
CMSItemNotFoundException
-
-