mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4952 Add automation test for this bug.
Also remove setters from POJOs (and replace with builders where necessary).
This commit is contained in:
@@ -35,6 +35,7 @@ import org.alfresco.rest.model.RestSiteModel;
|
|||||||
import org.alfresco.rest.model.RestSiteModelsCollection;
|
import org.alfresco.rest.model.RestSiteModelsCollection;
|
||||||
import org.alfresco.rest.requests.coreAPI.RestCoreAPI;
|
import org.alfresco.rest.requests.coreAPI.RestCoreAPI;
|
||||||
import org.alfresco.rest.rm.community.requests.gscore.GSCoreAPI;
|
import org.alfresco.rest.rm.community.requests.gscore.GSCoreAPI;
|
||||||
|
import org.alfresco.utility.model.StatusModel;
|
||||||
import org.alfresco.utility.model.UserModel;
|
import org.alfresco.utility.model.UserModel;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
@@ -102,6 +103,12 @@ public class RMRestWrapper
|
|||||||
restWrapper.processEmptyModel(simpleRequest);
|
restWrapper.processEmptyModel(simpleRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Get the most recently returned status object. */
|
||||||
|
public StatusModel getLastStatus()
|
||||||
|
{
|
||||||
|
return restWrapper.getLastStatus();
|
||||||
|
}
|
||||||
|
|
||||||
/** Get the most recently returned status code. */
|
/** Get the most recently returned status code. */
|
||||||
public String getStatusCode()
|
public String getStatusCode()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user