RM-6930 review updates

This commit is contained in:
Sara Aspery
2019-11-18 10:47:09 +00:00
parent b2ae5242e9
commit c8afa0db31

View File

@@ -590,7 +590,7 @@ public class HoldServiceImplUnitTest extends BaseUnitTest
/** /**
* test delete hold throws exception for failed read permission check for content * test delete hold throws exception for failed read permission check for content
*/ */
@Test (expected = AlfrescoRuntimeException.class) @Test (expected = AccessDeniedException.class)
public void testDeleteHoldThrowsExceptionForActiveContentWithoutReadPermission() public void testDeleteHoldThrowsExceptionForActiveContentWithoutReadPermission()
{ {
NodeRef heldContent = generateNodeRef(TYPE_CONTENT); 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 delete hold throws exception for failed read permission check for records
*/ */
@Test (expected = AlfrescoRuntimeException.class) @Test (expected = AccessDeniedException.class)
public void testDeleteHoldThrowsExceptionForARecordWithoutReadPermission() public void testDeleteHoldThrowsExceptionForARecordWithoutReadPermission()
{ {
NodeRef heldContent = generateNodeRef(); 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 delete hold throws exception for failed file permission check for records
*/ */
@Test (expected = AlfrescoRuntimeException.class) @Test (expected = AccessDeniedException.class)
public void testDeleteHoldThrowsExceptionForARecordWithoutFilePermission() public void testDeleteHoldThrowsExceptionForARecordWithoutFilePermission()
{ {
NodeRef heldContent = generateNodeRef(); NodeRef heldContent = generateNodeRef();