Class DefaultCMSVersionFacadeTest
- java.lang.Object
-
- de.hybris.platform.cmsfacades.version.impl.DefaultCMSVersionFacadeTest
-
@UnitTest public class DefaultCMSVersionFacadeTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLABEL_KEY
-
Constructor Summary
Constructors Constructor Description DefaultCMSVersionFacadeTest()
-
Method Summary
-
-
-
Field Detail
-
LABEL_KEY
public static final java.lang.String LABEL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFindVersionsForItem
public void shouldFindVersionsForItem() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldFailFindVersionsForItem_CMSItemDoesNotExist
public void shouldFailFindVersionsForItem_CMSItemDoesNotExist() throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
shouldThrowExceptionWhenUpdateVersionIfUSerDoesNotHaveChangePermission
public void shouldThrowExceptionWhenUpdateVersionIfUSerDoesNotHaveChangePermission()
-
shouldGetVersionForItem
public void shouldGetVersionForItem() throws CMSVersionNotFoundException- Throws:
CMSVersionNotFoundException
-
shouldFailGetVersion_CMSVersionDoesNotExist
public void shouldFailGetVersion_CMSVersionDoesNotExist() throws CMSVersionNotFoundException- Throws:
CMSVersionNotFoundException
-
shouldCreateVersionForItem
public void shouldCreateVersionForItem()
-
shouldFailCreateVersionForItem_ValidationError
public void shouldFailCreateVersionForItem_ValidationError()
-
shouldUpdateVersionForItem
public void shouldUpdateVersionForItem()
-
shouldFailUpdateVersionForItem_ValidationError
public void shouldFailUpdateVersionForItem_ValidationError()
-
shouldCreateVersionWithSpecificKeyGeneratedLabel
public void shouldCreateVersionWithSpecificKeyGeneratedLabel() throws java.text.ParseException- Throws:
java.text.ParseException
-
shouldFailRollbackVersionForItem_ValidationError
public void shouldFailRollbackVersionForItem_ValidationError()
-
shouldRollbackVersionForItem
public void shouldRollbackVersionForItem()
-
shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveReadPermissionOnItem
public void shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveReadPermissionOnItem()
-
shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveChangePermissionOnItem
public void shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveChangePermissionOnItem()
-
shouldDeleteVersionForItem
public void shouldDeleteVersionForItem()
-
shouldFailDeleteVersionForItemWithValidationError
public void shouldFailDeleteVersionForItemWithValidationError()
-
shouldNotDeleteVersionForItemWhenVersionModelNotFound
public void shouldNotDeleteVersionForItemWhenVersionModelNotFound()
-
shouldGetItemByVersionWhereVersionModelFound
public void shouldGetItemByVersionWhereVersionModelFound() throws CMSVersionNotFoundException- Throws:
CMSVersionNotFoundException
-
shouldThrowVersionNotFoundExceptionIfVersionNotFount
public void shouldThrowVersionNotFoundExceptionIfVersionNotFount() throws CMSVersionNotFoundException- Throws:
CMSVersionNotFoundException
-
createCMSVersionData
protected CMSVersionData createCMSVersionData(java.lang.String uid, java.lang.String itemUUID, java.lang.String label, java.lang.String description)
-
createCMSVersionData
protected CMSVersionData createCMSVersionData(java.lang.String itemUUID, java.lang.String label, java.lang.String description)
-
-