Class DefaultCMSComponentServiceTest


  • @UnitTest
    public class DefaultCMSComponentServiceTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultCMSComponentServiceTest

        public DefaultCMSComponentServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldBeNotRestrictedWhenRestrictionsAreNull

        public void shouldBeNotRestrictedWhenRestrictionsAreNull()
        Test method for de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel) .
      • shouldBeNotRestrictedWhenRestrictionsAreEmptyList

        public void shouldBeNotRestrictedWhenRestrictionsAreEmptyList()
        Test method for de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel) .
      • shouldBeRestrictedWhenRestrictionsAreNotEmptyList

        public void shouldBeRestrictedWhenRestrictionsAreNotEmptyList()
        Test method for de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel) .
      • shouldReturnAllEditorProperties

        public void shouldReturnAllEditorProperties()
      • shouldReturnOnlyReadableEditorProperties

        public void shouldReturnOnlyReadableEditorProperties()
      • givenComponentHasOneOrMoreReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsTrue

        public void givenComponentHasOneOrMoreReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsTrue()
      • givenComponentHasZeroReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsFalse

        public void givenComponentHasZeroReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsFalse()
      • ReturnEmptyArrayWhenComponentHasNoParents

        public void ReturnEmptyArrayWhenComponentHasNoParents()
      • ReturnArrayWhenComponentHasParents

        public void ReturnArrayWhenComponentHasParents()
      • SuccessReturnWhenComponentParentsHasCycle

        public void SuccessReturnWhenComponentParentsHasCycle()
      • SuccessReturnWhenComponentParentsHasCycle2

        public void SuccessReturnWhenComponentParentsHasCycle2()
      • ReturnEmptyArrayWhenComponentHasNoChildren

        public void ReturnEmptyArrayWhenComponentHasNoChildren()
      • ReturnArrayWhenComponentHasChildren

        public void ReturnArrayWhenComponentHasChildren()
      • SuccessReturnWhenComponentChildrenHasCycle

        public void SuccessReturnWhenComponentChildrenHasCycle()
      • ComponentInSharedSlots

        public void ComponentInSharedSlots()
      • ComponentParentInSharedSlots

        public void ComponentParentInSharedSlots()
      • ComponentNotInSharedSlots

        public void ComponentNotInSharedSlots()