Class DefaultCMSVersionFacadeTest

java.lang.Object
de.hybris.platform.cmsfacades.version.impl.DefaultCMSVersionFacadeTest

@UnitTest public class DefaultCMSVersionFacadeTest extends Object
  • Field Details

  • Constructor Details

    • DefaultCMSVersionFacadeTest

      public DefaultCMSVersionFacadeTest()
  • Method Details

    • 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 ParseException
      Throws:
      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(String uid, String itemUUID, String label, String description)
    • createCMSVersionData

      protected CMSVersionData createCMSVersionData(String itemUUID, String label, String description)