Class DefaultCMSContentPageServiceTest

java.lang.Object
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSContentPageServiceTest

@UnitTest public class DefaultCMSContentPageServiceTest extends Object
  • Constructor Details

    • DefaultCMSContentPageServiceTest

      public DefaultCMSContentPageServiceTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound

      public void testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound() throws Exception
      Throws:
      Exception
    • testShouldReturnLastPageByLabelWhenThereAreMultiplePages

      public void testShouldReturnLastPageByLabelWhenThereAreMultiplePages() throws Exception
      Throws:
      Exception
    • testShouldReturnLastPageByLabelWhenThereAreMultiplePrimaryPages

      public void testShouldReturnLastPageByLabelWhenThereAreMultiplePrimaryPages() throws Exception
      Throws:
      Exception
    • testShouldThrowExceptionWhenNoPageWithLabelFound

      public void testShouldThrowExceptionWhenNoPageWithLabelFound() throws Exception
      Throws:
      Exception
    • testShouldReturnFirstPageByIdWhenPageByExactLabelHasNotBeenFound

      public void testShouldReturnFirstPageByIdWhenPageByExactLabelHasNotBeenFound() throws Exception
      Throws:
      Exception
    • testShouldThrowExceptionWhenNoPageWithIdFound

      public void testShouldThrowExceptionWhenNoPageWithIdFound() throws Exception
      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()