mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4488 (Refactor REST API Automation test code according to the latest changes)
This commit is contained in:
@@ -28,6 +28,9 @@ package org.alfresco.rest.core;
|
||||
|
||||
import org.alfresco.rest.rm.community.requests.igCoreAPI.RestIGCoreAPI;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* FIXME!!!
|
||||
@@ -35,6 +38,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
* @author Tuna Aksoy
|
||||
* @since 2.6
|
||||
*/
|
||||
@Primary
|
||||
@Service
|
||||
@Scope(value = "prototype")
|
||||
public class RMRestWrapper extends RestWrapper
|
||||
{
|
||||
@Autowired
|
||||
|
@@ -205,7 +205,7 @@ public class FilePlanComponents extends RMModelRequest
|
||||
*/
|
||||
public FilePlanComponentModel createElectronicRecord(FilePlanComponentModel electronicRecordModel, File recordContent, String parentId) throws Exception
|
||||
{
|
||||
mandatoryObject("filePlanComponentProperties", electronicRecordModel);
|
||||
mandatoryObject("electronicRecordModel", electronicRecordModel);
|
||||
mandatoryString("parentId", parentId);
|
||||
if (!electronicRecordModel.getNodeType().equals(CONTENT_TYPE))
|
||||
{
|
||||
|
@@ -53,5 +53,6 @@ public abstract class RMModelRequest extends ModelRequest
|
||||
public RMModelRequest(RMRestWrapper rmRestWrapper)
|
||||
{
|
||||
super(rmRestWrapper);
|
||||
this.rmRestWrapper = rmRestWrapper;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user