From 7044145154c119e3eca4506aede34e918f9b4947 Mon Sep 17 00:00:00 2001 From: Ross Gale Date: Wed, 5 Jun 2019 09:30:41 +0100 Subject: [PATCH] RM-6869 extracting actions utils to a class --- .../rest/rm/community/records/RejectRecordTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/RejectRecordTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/RejectRecordTests.java index 87ff1a13a9..dbf2a69836 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/RejectRecordTests.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/RejectRecordTests.java @@ -62,14 +62,14 @@ public class RejectRecordTests extends BaseRMRestTest private RecordCategory recordCategory; private RecordCategoryChild recordFolder; - private ActionExecutorUtil actionExecuterUtil; + private ActionExecutorUtil actionExecutorUtil; private RecordCategoryChildCollection recordFolders; @BeforeClass (alwaysRun = true) public void setUp() throws Exception { - actionExecuterUtil = new ActionExecutorUtil(); + actionExecutorUtil = new ActionExecutorUtil(); publicSite = dataSite.usingAdmin().createPublicRandomSite(); recordCategory = createRootCategory(getRandomName("recordCategory")); recordFolder = createFolder(recordCategory.getId(), getRandomName("recordFolder")); @@ -95,7 +95,7 @@ public class RejectRecordTests extends BaseRMRestTest STEP("Link record to new folder"); getRestAPIFactory().getActionsAPI().linkRecord(testFile, recordCategory.getName() + "/" + recordFolder.getName() + "_2"); recordFolders = null; - actionExecuterUtil.checkActionExecution(new LinkEvaluator()); + actionExecutorUtil.checkActionExecution(new LinkEvaluator()); Optional linkedFolder = recordFolders.getEntries().stream().filter(child -> child.getEntry().getName().equals(recordFolder.getName() + "_2")) .findFirst(); @@ -106,7 +106,7 @@ public class RejectRecordTests extends BaseRMRestTest STEP("Reject record"); getRestAPIFactory().getActionsAPI().rejectRecord(testFile, "Just because"); - actionExecuterUtil.checkActionExecution(new RejectEvaluator()); + actionExecutorUtil.checkActionExecution(new RejectEvaluator()); STEP("Check record has been rejected"); assertFalse("Record rejection failure", isMatchingRecordInRecordFolder(testFile, recordFolder));