Class DefaultCMSComponentServiceTest
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentServiceTest
-
@UnitTest public class DefaultCMSComponentServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSComponentServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgivenComponentHasOneOrMoreReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsTrue()voidgivenComponentHasZeroReferencesOusidePage_WhenIsComponentUsedOutsidePageIsCalled_ThenItReturnsFalse()voidsetUp()voidshouldBeNotRestrictedWhenRestrictionsAreEmptyList()Test method forde.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel).voidshouldBeNotRestrictedWhenRestrictionsAreNull()Test method forde.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel).voidshouldBeRestrictedWhenRestrictionsAreNotEmptyList()Test method forde.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel).voidshouldReturnAllEditorProperties()voidshouldReturnOnlyReadableEditorProperties()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeNotRestrictedWhenRestrictionsAreNull
public void shouldBeNotRestrictedWhenRestrictionsAreNull()
Test method forde.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel).
-
shouldBeNotRestrictedWhenRestrictionsAreEmptyList
public void shouldBeNotRestrictedWhenRestrictionsAreEmptyList()
Test method forde.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSComponentService#isCmsComponentRestricted(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel).
-
shouldBeRestrictedWhenRestrictionsAreNotEmptyList
public void shouldBeRestrictedWhenRestrictionsAreNotEmptyList()
Test method forde.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()
-
-