Class DefaultCMSPageServiceTest
java.lang.Object
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageServiceTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()protected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
DefaultCMSPageServiceTest
public DefaultCMSPageServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testShouldCallCmsContentSlotDaoAndFindAllContentPagesByCatalogVersion
public void testShouldCallCmsContentSlotDaoAndFindAllContentPagesByCatalogVersion() -
testShouldCallCmsContentSlotDaoAndGetOwnContentSlotsForPage
public void testShouldCallCmsContentSlotDaoAndGetOwnContentSlotsForPage() -
testShouldReturnFrontendTemplateName
public void testShouldReturnFrontendTemplateName() -
testShouldReturnPageForProductWhenOnlyOnePageWithoutRestrictionsFound
public void testShouldReturnPageForProductWhenOnlyOnePageWithoutRestrictionsFound() throws Exception- Throws:
Exception
-
testShouldReturnLastProductPageByProductWhenThereAreMoreThenOnePage
- Throws:
Exception
-
testShouldThrowExceptionWhenNoProductPageFound
- Throws:
Exception
-
shouldReturnProductPageByProductCode
- Throws:
Exception
-
shouldThrowExceptionWhenProductCodeDoesNotExists
- Throws:
Exception
-
shouldReturnPageForCategoryWhenOnlyOnePageWithoutRestrictionsFound
- Throws:
Exception
-
shouldReturnLastCategoryPageByCategoryWhenThereAreMoreThenOnePage
- Throws:
Exception
-
shouldThrowExceptionWhenNoCategoryPageFound
- Throws:
Exception
-
shouldReturnCategoryPageByCategoryCode
- Throws:
Exception
-
shouldThrowExceptionWhenCategoryPageIsNotFoundByCode
- Throws:
Exception
-
shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForId
public void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForId() throws Exception- Throws:
Exception
-
shouldThrowExceptionWhenAnInvalidVersionUidIsPassedToGetPageForVersionUid
public void shouldThrowExceptionWhenAnInvalidVersionUidIsPassedToGetPageForVersionUid() throws Exception- Throws:
Exception
-
shouldReturnTheActualPageWhenAnInvalidVersionUidIsPassedToGetPageForId
public void shouldReturnTheActualPageWhenAnInvalidVersionUidIsPassedToGetPageForId() throws Exception- Throws:
Exception
-
getPageForIdWithRestrictionsShouldReturnExpectedContentPage
- Throws:
Exception
-
getPageForIdWithRestrictionsShouldReturnExpectedCategoryPage
- Throws:
Exception
-
getPageForIdWithRestrictionsShouldReturnExpectedProductPage
- Throws:
Exception
-
getPageForIdWithRestrictionsWithNotSupportedPageTypeShouldReturnExpectedPage
public void getPageForIdWithRestrictionsWithNotSupportedPageTypeShouldReturnExpectedPage() throws Exception- Throws:
Exception
-
shouldThrowExceptionWhenPageNotFoundById
- Throws:
Exception
-
givenAValidVersionUidShouldReturnTheConentsSlotsForPageFromCachedSessionContextProvider
public void givenAValidVersionUidShouldReturnTheConentsSlotsForPageFromCachedSessionContextProvider() -
givenAValidVersionUidGetContentSlotForPageShouldReturnSlotFromSessionVersionContext
public void givenAValidVersionUidGetContentSlotForPageShouldReturnSlotFromSessionVersionContext() throws Exception- Throws:
Exception
-
givenAValidVersionUidThenGetPageForCategoryShouldReturnPageForProvidedCategory
public void givenAValidVersionUidThenGetPageForCategoryShouldReturnPageForProvidedCategory() throws Exception- Throws:
Exception
-
givenAValidVersionUidThenGetPageForCategoryCodeShouldReturnPageForProvidedCategoryCode
public void givenAValidVersionUidThenGetPageForCategoryCodeShouldReturnPageForProvidedCategoryCode() throws Exception- Throws:
Exception
-
givenAValidVersionUidThenGetPageForProductShouldReturnPageForProvidedProduct
public void givenAValidVersionUidThenGetPageForProductShouldReturnPageForProvidedProduct() throws Exception- Throws:
Exception
-
givenAValidVersionUidThenGetPageForProductCodeShouldReturnPageForProvidedProductCode
public void givenAValidVersionUidThenGetPageForProductCodeShouldReturnPageForProvidedProductCode() throws Exception- Throws:
Exception
-
setupValidVersionUidMocks
protected void setupValidVersionUidMocks()
-