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()