code review changes

This commit is contained in:
cagache
2018-06-11 10:15:14 +03:00
parent 411c23dcd1
commit daa599e8cf

View File

@@ -57,7 +57,7 @@ public class AutomaticDispositionTest extends BaseRMRestTest
* When the correct duration of time passes * When the correct duration of time passes
* Then the record will be automatically cut off * Then the record will be automatically cut off
*/ */
@Test @Test(enabled = false)
public void testAutomaticCutOff() throws Exception public void testAutomaticCutOff() throws Exception
{ {
STEP("Create record category with retention schedule and apply it to records."); 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"); STEP("Create a record folder with a record");
RecordCategoryChild recordFolder = createRecordFolder(categoryWithRSOnRecords.getId(), getRandomName RecordCategoryChild recordFolder = createRecordFolder(categoryWithRSOnRecords.getId(), getRandomName
("recordFolder")); ("recordFolder"));
Record record = createElectronicRecord(recordFolder.getId(), getRandomName("elRecord")); Record record = createElectronicRecord(recordFolder.getId(), getRandomName("elRecord"));
STEP("Complete the record and wait upon to 5 minutes for automatic job to execute"); STEP("Complete the record and wait upon to 5 minutes for automatic job to execute");
completeRecord(record.getId()); completeRecord(record.getId());
@@ -85,7 +85,6 @@ public class AutomaticDispositionTest extends BaseRMRestTest
count++; count++;
aspects = recordsAPI.getRecord(record.getId()).getAspectNames(); aspects = recordsAPI.getRecord(record.getId()).getAspectNames();
} }
aspects = recordsAPI.getRecord(record.getId()).getAspectNames();
assertTrue(aspects.contains(CUT_OFF_ASPECT), "Record should now be cut off"); assertTrue(aspects.contains(CUT_OFF_ASPECT), "Record should now be cut off");
} }