From daa599e8cf69a8911a38ac42acc512f326d69b18 Mon Sep 17 00:00:00 2001 From: cagache Date: Mon, 11 Jun 2018 10:15:14 +0300 Subject: [PATCH] code review changes --- .../community/recordcategories/AutomaticDispositionTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/AutomaticDispositionTest.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/AutomaticDispositionTest.java index 7d35b5e166..deb51e284d 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/AutomaticDispositionTest.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/recordcategories/AutomaticDispositionTest.java @@ -57,7 +57,7 @@ public class AutomaticDispositionTest extends BaseRMRestTest * When the correct duration of time passes * Then the record will be automatically cut off */ - @Test + @Test(enabled = false) public void testAutomaticCutOff() throws Exception { STEP("Create record category with retention schedule and apply it to records."); @@ -70,8 +70,8 @@ public class AutomaticDispositionTest extends BaseRMRestTest STEP("Create a record folder with a record"); RecordCategoryChild recordFolder = createRecordFolder(categoryWithRSOnRecords.getId(), getRandomName ("recordFolder")); - Record record = createElectronicRecord(recordFolder.getId(), getRandomName("elRecord")); + STEP("Complete the record and wait upon to 5 minutes for automatic job to execute"); completeRecord(record.getId()); @@ -85,7 +85,6 @@ public class AutomaticDispositionTest extends BaseRMRestTest count++; aspects = recordsAPI.getRecord(record.getId()).getAspectNames(); } - aspects = recordsAPI.getRecord(record.getId()).getAspectNames(); assertTrue(aspects.contains(CUT_OFF_ASPECT), "Record should now be cut off"); }