@UnitTest public class DefaultCMSPageServiceTest extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultCMSPageServiceTest.SomePageModel |
| Constructor and Description |
|---|
DefaultCMSPageServiceTest() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldCallCmsContentSlotDaoAndFindAllContentPagesByCatalogVersion()
public void testShouldCallCmsContentSlotDaoAndGetOwnContentSlotsForPage()
public void testShouldReturnFrontendTemplateName()
public void testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldReturnLastPageByLabelWhenThereAreMoreThenOnePage()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldThrowExceptionWhenNoPageWithLabelFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldReturnFirstPageByIdWhenPageByLabelHasNotBeenFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldThrowExceptionWhenNoPageWithIdFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldReturnPageForProductWhenOnlyOnePageWithoutRestrictionsFound()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldReturnLastProductPageByProductWhenThereAreMoreThenOnePage()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldThrowExceptionWhenNoProductPageFound()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnProductPageByProductCode()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowExceptionWhenProductCodeDoesNotExists()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnPageForCategoryWhenOnlyOnePageWithoutRestrictionsFound()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnLastCategoryPageByCategoryWhenThereAreMoreThenOnePage()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowExceptionWhenNoCategoryPageFound()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnCategoryPageByCategoryCode()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowExceptionWhenCategoryPageIsNotFoundByCode()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForId()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowExceptionWhenAnInvalidVersionUidIsPassedToGetPageForVersionUid()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnTheActualPageWhenAnInvalidVersionUidIsPassedToGetPageForId()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageForIdWithRestrictionsShouldReturnExpectedContentPage()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageForIdWithRestrictionsShouldReturnExpectedCategoryPage()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageForIdWithRestrictionsShouldReturnExpectedProductPage()
throws java.lang.Exception
java.lang.Exceptionpublic void getPageForIdWithRestrictionsWithNotSupportedPageTypeShouldReturnExpectedPage()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowExceptionWhenPageNotFoundById()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabel()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabelOrId()
throws java.lang.Exception
java.lang.Exceptionpublic void givenAValidVersionUidShouldReturnTheConentsSlotsForPageFromCachedSessionContextProvider()
public void givenAValidVersionUidGetContentSlotForPageShouldReturnSlotFromSessionVersionContext()
throws java.lang.Exception
java.lang.Exceptionpublic void givenAValidVersionUidThenGetPageForCategoryShouldReturnPageForProvidedCategory()
throws java.lang.Exception
java.lang.Exceptionpublic void givenAValidVersionUidThenGetPageForCategoryCodeShouldReturnPageForProvidedCategoryCode()
throws java.lang.Exception
java.lang.Exceptionpublic void givenAValidVersionUidThenGetPageForProductShouldReturnPageForProvidedProduct()
throws java.lang.Exception
java.lang.Exceptionpublic void givenAValidVersionUidThenGetPageForProductCodeShouldReturnPageForProvidedProductCode()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldFindHomepageForMultiCountry()
public void givenAValidVersionUidThenGetHomepageShouldReturnPageForTheProvidedVersionId()
throws java.lang.Exception
java.lang.Exceptionprotected void setupValidVersionUidMocks()
Copyright © 2018 SAP SE. All Rights Reserved.