Class DefaultCMSContentPageServiceTest
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSContentPageServiceTest
-
@UnitTest public class DefaultCMSContentPageServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSContentPageServiceTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound
public void testShouldReturnThePageByLabelWhenOnlyOnePageWithoutRestrictionsIsFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldReturnLastPageByLabelWhenThereAreMultiplePages
public void testShouldReturnLastPageByLabelWhenThereAreMultiplePages() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldReturnLastPageByLabelWhenThereAreMultiplePrimaryPages
public void testShouldReturnLastPageByLabelWhenThereAreMultiplePrimaryPages() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldThrowExceptionWhenNoPageWithLabelFound
public void testShouldThrowExceptionWhenNoPageWithLabelFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldReturnFirstPageByIdWhenPageByExactLabelHasNotBeenFound
public void testShouldReturnFirstPageByIdWhenPageByExactLabelHasNotBeenFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
testShouldThrowExceptionWhenNoPageWithIdFound
public void testShouldThrowExceptionWhenNoPageWithIdFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabel
public void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForLabel() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForExactLabelOrId
public void shouldReturnTheVersionedPageWhenAValidVersionUidIsPassedToGetPageForExactLabelOrId() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldFindHomepageForMultiCountry
public void shouldFindHomepageForMultiCountry()
-
givenAValidVersionUidThenGetHomepageShouldReturnPageForTheProvidedVersionId
public void givenAValidVersionUidThenGetHomepageShouldReturnPageForTheProvidedVersionId() throws java.lang.Exception- Throws:
java.lang.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()
-
-