mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
code review changes
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user