@UnitTest public class DefaultCMSVersionFacadeTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LABEL_KEY |
| Constructor and Description |
|---|
DefaultCMSVersionFacadeTest() |
public static final java.lang.String LABEL_KEY
public void setUp()
public void shouldFindVersionsForItem()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldFailFindVersionsForItem_CMSItemDoesNotExist()
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void shouldThrowExceptionWhenUpdateVersionIfUSerDoesNotHaveChangePermission()
public void shouldGetVersionForItem()
throws CMSVersionNotFoundException
CMSVersionNotFoundExceptionpublic void shouldFailGetVersion_CMSVersionDoesNotExist()
throws CMSVersionNotFoundException
CMSVersionNotFoundExceptionpublic void shouldCreateVersionForItem()
public void shouldFailCreateVersionForItem_ValidationError()
public void shouldUpdateVersionForItem()
public void shouldFailUpdateVersionForItem_ValidationError()
public void shouldCreateVersionWithSpecificKeyGeneratedLabel()
throws java.text.ParseException
java.text.ParseExceptionpublic void shouldFailRollbackVersionForItem_ValidationError()
public void shouldRollbackVersionForItem()
public void shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveReadPermissionOnItem()
public void shouldThrowExceptionWhenRollbackVersionForItemIfUserDoesNotHaveChangePermissionOnItem()
public void shouldDeleteVersionForItem()
public void shouldFailDeleteVersionForItemWithValidationError()
public void shouldNotDeleteVersionForItemWhenVersionModelNotFound()
public void shouldGetItemByVersionWhereVersionModelFound()
throws CMSVersionNotFoundException
CMSVersionNotFoundExceptionpublic void shouldThrowVersionNotFoundExceptionIfVersionNotFount()
throws CMSVersionNotFoundException
CMSVersionNotFoundExceptionprotected CMSVersionData createCMSVersionData(java.lang.String uid, java.lang.String itemUUID, java.lang.String label, java.lang.String description)
protected CMSVersionData createCMSVersionData(java.lang.String itemUUID, java.lang.String label, java.lang.String description)
Copyright © 2018 SAP SE. All Rights Reserved.