Class DefaultPageFacadeTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pages.impl.DefaultPageFacadeTest
-
@UnitTest public class DefaultPageFacadeTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultPageFacadeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeletePageOperation_shouldTrashPageAndReturnOperationData()voidfindAllPagesReturnTransformedCollectionOfAllSupportedPagesOrderByNameAscending()voidfindPagesReturnsEmptyList()voidsetup()voidshouldFailFindAllFallbackPages_InvalidPageId()voidshouldFailFindAllFallbackPagesForContentPageType_InvalidTypeCode()voidshouldFailGetPageByUid_AmbiguousIdentifier()voidshouldFailGetPageByUid_UnknownIdentifier()voidshouldFailWhenOperationIsNotSet()voidshouldFailWhenPageDoesnotExist()voidshouldFindAllFallbackPagesForContentPageType()voidshouldFindAllSupportedPageTypes()voidshouldFindFallbackPages()voidshouldFindVariationPages()voidshouldGetPageByUid()voidshouldInitializeCacheBeforeRetrievingPageById()voidshouldInitializeCacheBeforeRetrievingPageByType()voidshouldNotFindAnySupportedPageTypes()
-
-
-
Method Detail
-
setup
public void setup()
-
findAllPagesReturnTransformedCollectionOfAllSupportedPagesOrderByNameAscending
public void findAllPagesReturnTransformedCollectionOfAllSupportedPagesOrderByNameAscending()
-
findPagesReturnsEmptyList
public void findPagesReturnsEmptyList()
-
shouldGetPageByUid
public void shouldGetPageByUid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailGetPageByUid_UnknownIdentifier
public void shouldFailGetPageByUid_UnknownIdentifier() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailGetPageByUid_AmbiguousIdentifier
public void shouldFailGetPageByUid_AmbiguousIdentifier() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFindAllSupportedPageTypes
public void shouldFindAllSupportedPageTypes()
-
shouldNotFindAnySupportedPageTypes
public void shouldNotFindAnySupportedPageTypes()
-
shouldFindFallbackPages
public void shouldFindFallbackPages() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailFindAllFallbackPages_InvalidPageId
public void shouldFailFindAllFallbackPages_InvalidPageId() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFindVariationPages
public void shouldFindVariationPages() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFindAllFallbackPagesForContentPageType
public void shouldFindAllFallbackPagesForContentPageType()
-
shouldFailFindAllFallbackPagesForContentPageType_InvalidTypeCode
public void shouldFailFindAllFallbackPagesForContentPageType_InvalidTypeCode()
-
shouldFailWhenOperationIsNotSet
public void shouldFailWhenOperationIsNotSet() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailWhenPageDoesnotExist
public void shouldFailWhenPageDoesnotExist() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
deletePageOperation_shouldTrashPageAndReturnOperationData
public void deletePageOperation_shouldTrashPageAndReturnOperationData() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldInitializeCacheBeforeRetrievingPageById
public void shouldInitializeCacheBeforeRetrievingPageById() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldInitializeCacheBeforeRetrievingPageByType
public void shouldInitializeCacheBeforeRetrievingPageByType() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
-