From a73d7d461be176c7cfc1e64469b5d802e6bec11c Mon Sep 17 00:00:00 2001 From: Tom Page Date: Tue, 18 Apr 2017 09:46:45 +0100 Subject: [PATCH] RM-4952 Add automation test for this bug. Also remove setters from POJOs (and replace with builders where necessary). --- .../main/java/org/alfresco/rest/core/RMRestWrapper.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestWrapper.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestWrapper.java index 807bb66a12..7a529e0633 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestWrapper.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/RMRestWrapper.java @@ -35,6 +35,7 @@ import org.alfresco.rest.model.RestSiteModel; import org.alfresco.rest.model.RestSiteModelsCollection; import org.alfresco.rest.requests.coreAPI.RestCoreAPI; import org.alfresco.rest.rm.community.requests.gscore.GSCoreAPI; +import org.alfresco.utility.model.StatusModel; import org.alfresco.utility.model.UserModel; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; @@ -102,6 +103,12 @@ public class RMRestWrapper restWrapper.processEmptyModel(simpleRequest); } + /** Get the most recently returned status object. */ + public StatusModel getLastStatus() + { + return restWrapper.getLastStatus(); + } + /** Get the most recently returned status code. */ public String getStatusCode() {