From c8afa0db31d60178fded60504fcc89cb046a84d1 Mon Sep 17 00:00:00 2001 From: Sara Aspery Date: Mon, 18 Nov 2019 10:47:09 +0000 Subject: [PATCH] RM-6930 review updates --- .../hold/HoldServiceImplUnitTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServiceImplUnitTest.java b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServiceImplUnitTest.java index 875066d10a..95bfc6302c 100644 --- a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServiceImplUnitTest.java +++ b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServiceImplUnitTest.java @@ -590,7 +590,7 @@ public class HoldServiceImplUnitTest extends BaseUnitTest /** * test delete hold throws exception for failed read permission check for content */ - @Test (expected = AlfrescoRuntimeException.class) + @Test (expected = AccessDeniedException.class) public void testDeleteHoldThrowsExceptionForActiveContentWithoutReadPermission() { NodeRef heldContent = generateNodeRef(TYPE_CONTENT); @@ -606,7 +606,7 @@ public class HoldServiceImplUnitTest extends BaseUnitTest /** * test delete hold throws exception for failed read permission check for records */ - @Test (expected = AlfrescoRuntimeException.class) + @Test (expected = AccessDeniedException.class) public void testDeleteHoldThrowsExceptionForARecordWithoutReadPermission() { NodeRef heldContent = generateNodeRef(); @@ -621,7 +621,7 @@ public class HoldServiceImplUnitTest extends BaseUnitTest /** * test delete hold throws exception for failed file permission check for records */ - @Test (expected = AlfrescoRuntimeException.class) + @Test (expected = AccessDeniedException.class) public void testDeleteHoldThrowsExceptionForARecordWithoutFilePermission() { NodeRef heldContent = generateNodeRef();