Merge RM-5917 ClassificationSourceReference API TESTS to master

This commit is contained in:
Jelena Cule
2018-01-05 10:41:35 +00:00
parent 1ea0b9fccf
commit 1ee4e1d5aa
4 changed files with 91 additions and 14 deletions

View File

@@ -668,17 +668,4 @@ public class BaseRMRestTest extends RestTest
return documentLibrary;
}
/**
* Helper method to create a Content Model
*
* @return ContentModel
* @throws Exception
*/
public ContentModel toContentModel(String nodeId)
{
ContentModel node = new ContentModel();
node.setNodeRef(nodeId);
return node;
}
}

View File

@@ -27,6 +27,7 @@
package org.alfresco.rest.rm.community.utils;
import org.alfresco.rest.model.RestNodeBodyMoveCopyModel;
import org.alfresco.utility.model.ContentModel;
/**
* Utility class for core components models
@@ -53,4 +54,17 @@ public class CoreUtil
moveDestinationInfo.setTargetParentId(nodeId);
return moveDestinationInfo;
}
/**
* Helper method to create a Content Model
*
* @return ContentModel
* @throws Exception
*/
public static ContentModel toContentModel(String nodeId)
{
ContentModel node = new ContentModel();
node.setNodeRef(nodeId);
return node;
}
}