Class DefaultCMSContentPageServiceTest
java.lang.Object
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSContentPageServiceTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetUp()protected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
DefaultCMSContentPageServiceTest
public DefaultCMSContentPageServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound
public void testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound() throws Exception- Throws:
Exception
-
testShouldReturnLastPageByLabelWhenThereAreMultiplePages
- Throws:
Exception
-
testShouldReturnLastPageByLabelWhenThereAreMultiplePrimaryPages
- Throws:
Exception
-
testShouldThrowExceptionWhenNoPageWithLabelFound
- Throws:
Exception
-
testShouldReturnFirstPageByIdWhenPageByExactLabelHasNotBeenFound
- Throws:
Exception
-
testShouldThrowExceptionWhenNoPageWithIdFound
- Throws:
Exception
-
shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabel
public void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabel() throws Exception- Throws:
Exception
-
shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForExactLabelOrId
public void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForExactLabelOrId() throws Exception- Throws:
Exception
-
shouldFindHomepageForMultiCountry
public void shouldFindHomepageForMultiCountry() -
shouldFindHomepageForMultiContent
public void shouldFindHomepageForMultiContent() -
shouldNotFindHomepageForMultiContentWhenDefaultPageNotInSiteContentCatalogList
public void shouldNotFindHomepageForMultiContentWhenDefaultPageNotInSiteContentCatalogList() -
givenAValidVersionUidThenGetHomepageShouldReturnPageForTheProvidedVersionId
public void givenAValidVersionUidThenGetHomepageShouldReturnPageForTheProvidedVersionId() throws Exception- Throws:
Exception
-
setupValidVersionUidMocks
protected void setupValidVersionUidMocks() -
testFindBestMatchLabelVariationsForLabelStartWithSlash
public void testFindBestMatchLabelVariationsForLabelStartWithSlash() -
testFindBestMatchLabelVariationsForLabelEndsWithSlash
public void testFindBestMatchLabelVariationsForLabelEndsWithSlash() -
testFindBestMatchLabelVariationsForLabelNotStartWithSlash
public void testFindBestMatchLabelVariationsForLabelNotStartWithSlash() -
testFindExactMatchLabelVariationsForLabelStartWithSlash
public void testFindExactMatchLabelVariationsForLabelStartWithSlash() -
testFindExactMatchLabelVariationsForLabelNotStartWithSlash
public void testFindExactMatchLabelVariationsForLabelNotStartWithSlash() -
shouldFindHomepageForMultiContentWhenPreview
public void shouldFindHomepageForMultiContentWhenPreview()
-