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