Class DefaultCMSItemFacadeTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.impl.DefaultCMSItemFacadeTest
-
@UnitTest public class DefaultCMSItemFacadeTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSItemFacadeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidshouldCreateItem()voidshouldDeleteValidUid()voidshouldFailCreateItemInsufficientTypePermission()voidshouldFailDeleteItemInsufficientTypePermission()voidshouldFailFindByIdInsufficientTypePermission()voidshouldFailFindByIdInvalidUid()voidshouldFailUpdateItemInsufficientTypePermission()voidshouldFailUpdateWhenItemHasInconsistentValue()voidshouldFailUpdateWhenUuidIsInvalid()voidshouldFindByIdValidUid()voidshouldSearchForItems()voidshouldTransformValidationExceptionWithNoQualifier()voidshouldTransformValidationExceptionWithOneQualifier()voidshouldTransformValidationExceptionWithTwoQualifiers()voidshouldUpdateItem()voidshouldValidateItemForCreateAndRollbackTransaction()voidshouldValidateItemForUpdateAndRollbackTransaction()
-
-
-
Method Detail
-
setup
public void setup() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailFindByIdInvalidUid
public void shouldFailFindByIdInvalidUid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailFindByIdInsufficientTypePermission
public void shouldFailFindByIdInsufficientTypePermission() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFindByIdValidUid
public void shouldFindByIdValidUid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldDeleteValidUid
public void shouldDeleteValidUid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailDeleteItemInsufficientTypePermission
public void shouldFailDeleteItemInsufficientTypePermission() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldCreateItem
public void shouldCreateItem() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailCreateItemInsufficientTypePermission
public void shouldFailCreateItemInsufficientTypePermission() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldValidateItemForCreateAndRollbackTransaction
public void shouldValidateItemForCreateAndRollbackTransaction() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailUpdateWhenUuidIsInvalid
public void shouldFailUpdateWhenUuidIsInvalid() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailUpdateWhenItemHasInconsistentValue
public void shouldFailUpdateWhenItemHasInconsistentValue() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldUpdateItem
public void shouldUpdateItem() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailUpdateItemInsufficientTypePermission
public void shouldFailUpdateItemInsufficientTypePermission() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldValidateItemForUpdateAndRollbackTransaction
public void shouldValidateItemForUpdateAndRollbackTransaction() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldSearchForItems
public void shouldSearchForItems()
-
shouldTransformValidationExceptionWithNoQualifier
public void shouldTransformValidationExceptionWithNoQualifier()
-
shouldTransformValidationExceptionWithOneQualifier
public void shouldTransformValidationExceptionWithOneQualifier()
-
shouldTransformValidationExceptionWithTwoQualifiers
public void shouldTransformValidationExceptionWithTwoQualifiers()
-
-