Class DefaultCMSComponentServiceTest

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

@UnitTest public class DefaultCMSComponentServiceTest extends Object
  • Constructor Details

    • DefaultCMSComponentServiceTest

      public DefaultCMSComponentServiceTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      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()