mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-581 (A user will receive notification of rejected records)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@46150 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -89,7 +89,7 @@ public class HideRecordActionTest extends BaseRMTestCase
|
||||
assertTrue(recordService.isRecord(doc));
|
||||
|
||||
// The record should have the original location information
|
||||
assertNotNull(nodeService.getProperty(doc, PROP_RECORD_ORIGINAL_LOCATION));
|
||||
assertNotNull(nodeService.getProperty(doc, PROP_RECORD_ORIGINATING_LOCATION));
|
||||
|
||||
// Check the parents. In this case the document should have two parents (doclib and fileplan)
|
||||
assertTrue(nodeService.getParentAssocs(doc).size() == 2);
|
||||
|
@@ -75,7 +75,7 @@ public class RejectActionTest extends BaseRMTestCase
|
||||
assertTrue(recordService.isRecord(dmDocument));
|
||||
|
||||
// The record should have the original location information
|
||||
assertNotNull(nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINAL_LOCATION));
|
||||
assertNotNull(nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINATING_LOCATION));
|
||||
|
||||
// Check the parents. In this case the document should have two parents (doclib and fileplan)
|
||||
assertTrue(nodeService.getParentAssocs(dmDocument).size() == 2);
|
||||
|
@@ -258,7 +258,7 @@ public class RecordServiceImplTest extends BaseRMTestCase
|
||||
|
||||
// show that the record has meta-data about it's original location
|
||||
assertTrue(nodeService.hasAspect(dmDocument, ASPECT_RECORD_ORIGINATING_DETAILS));
|
||||
assertEquals(originalLocation, nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINAL_LOCATION));
|
||||
assertEquals(originalLocation, nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINATING_LOCATION));
|
||||
assertFalse(originalLocation == nodeService.getPrimaryParent(dmDocument).getParentRef());
|
||||
|
||||
// show that the record is linked to it's original location
|
||||
@@ -346,7 +346,7 @@ public class RecordServiceImplTest extends BaseRMTestCase
|
||||
|
||||
// show that the record has meta-data about it's original location
|
||||
assertTrue(nodeService.hasAspect(dmDocument, ASPECT_RECORD_ORIGINATING_DETAILS));
|
||||
assertEquals(originalLocation, nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINAL_LOCATION));
|
||||
assertEquals(originalLocation, nodeService.getProperty(dmDocument, PROP_RECORD_ORIGINATING_LOCATION));
|
||||
assertFalse(originalLocation == nodeService.getPrimaryParent(dmDocument).getParentRef());
|
||||
|
||||
// show that the record is linked to it's original location
|
||||
|
Reference in New Issue
Block a user