@UnitTest public class DefaultCMSActivateBaseSiteInSessionStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultCMSActivateBaseSiteInSessionStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare() |
void |
testCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected() |
void |
testCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected() |
void |
testCurrentCMSSiteNotEqualsGivenSiteWith() |
void |
testFewStoresForSiteNoActiveCatalogVersion() |
void |
testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected() |
void |
testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected() |
void |
testNullSite() |
void |
testShouldThrowAnExceptionForFewStoresForSite() |
void |
testThrowAnExceptionWhenNoStoreForSite() |
void |
testThrowAnExceptionWhenNotEmptyContentCatalogs() |
protected void |
throwExceptionIfInteraction()
Assures if no interaction with
CMSSiteService.setCurrentSite(CMSSiteModel) and
CMSSiteService.setCurrentCatalogVersion(CatalogVersionModel) was recorded. |
public DefaultCMSActivateBaseSiteInSessionStrategyTest()
public void prepare()
public void testNullSite()
public void testThrowAnExceptionWhenNoStoreForSite()
public void testThrowAnExceptionWhenNotEmptyContentCatalogs()
throws BusinessException
BusinessExceptionpublic void testFewStoresForSiteNoActiveCatalogVersion()
public void testShouldThrowAnExceptionForFewStoresForSite()
throws BusinessException
BusinessExceptionpublic void testNoCurrentCMSSiteAvailableAssureNoSetCurrentSiteCalledNoCMSSiteSetExpected()
throws BusinessException
BusinessExceptionpublic void testNoCurrentCMSSiteAvailableAndHasNotCurrentCatalogVersionNoCMSSiteSetExpected()
throws BusinessException
BusinessExceptionpublic void testCurrentCMSSiteNotEqualsGivenSiteNoCMSSiteSetExpected()
throws BusinessException
BusinessExceptionpublic void testCurrentCMSSiteNotEqualsGivenSiteWith()
throws BusinessException
BusinessExceptionpublic void testCurrentCMSSiteEqualsGivenSiteNoCMSSiteSetExpected()
throws BusinessException
BusinessExceptionprotected void throwExceptionIfInteraction()
throws CMSItemNotFoundException
CMSSiteService.setCurrentSite(CMSSiteModel) and
CMSSiteService.setCurrentCatalogVersion(CatalogVersionModel) was recorded. It is up to you to handle this
in the testCMSItemNotFoundExceptionCopyright © 2018 SAP SE. All Rights Reserved.