From 690d55cf44c337215e3572d0f70e463d5b6230f6 Mon Sep 17 00:00:00 2001 From: cagache Date: Mon, 1 Oct 2018 18:34:14 +0300 Subject: [PATCH] code review changes --- .../DispositionScheduleInheritanceTests.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/DispositionScheduleInheritanceTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/DispositionScheduleInheritanceTests.java index b600736751..5690d85263 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/DispositionScheduleInheritanceTests.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/DispositionScheduleInheritanceTests.java @@ -200,7 +200,7 @@ public class DispositionScheduleInheritanceTests extends BaseRMRestTest "rma:recordSearchHasDispositionSchedule property should be true"); Assert.assertEquals(recFolder.getProperties().getRecordSearchDispositionActionName(), CUTOFF_STEP, - "Disposition action should be retain and not cutoff for complete record"); + "Disposition action should be cutoff and not retain for the record folder"); } /** @@ -257,6 +257,7 @@ public class DispositionScheduleInheritanceTests extends BaseRMRestTest * - incomplete electronic record * - complete non-electronic record * Then both records should not have RS (rma:recordSearchHasDispositionSchedule property is set to false) + * and record folder inherits the RS from subCategory */ @Test public void testMixedRSInheritanceWhenFirstParentHasRSOnFolders() throws Exception @@ -287,5 +288,12 @@ public class DispositionScheduleInheritanceTests extends BaseRMRestTest "rma:recordSearchHasDispositionSchedule property should be false for incomplete record"); Assert.assertFalse(nonElRecord.getProperties().getRecordSearchHasDispositionSchedule(), "rma:recordSearchHasDispositionSchedule property should be false for complete record"); + + STEP("Check that recFolder inherits subCategory retention schedule"); + Assert.assertTrue(recFolder.getProperties().getRecordSearchHasDispositionSchedule(), + "rma:recordSearchHasDispositionSchedule property should be true"); + Assert.assertEquals(recFolder.getProperties().getRecordSearchDispositionActionName(), + RETAIN_STEP, + "Disposition action should be retain and not cutoff for the record folder"); } }