mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
129178 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1) 128608 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 4 REPO-113 (also relates to REPO-28, REPO-114, REPO-825) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129352 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -142,9 +142,9 @@ public class BaseCustomModelApiTest extends AbstractBaseApiTest
|
||||
customModel.setDescription(desc);
|
||||
customModel.setStatus(status);
|
||||
customModel.setAuthor(author);
|
||||
|
||||
|
||||
// Create the model as a Model Administrator
|
||||
HttpResponse response = post("cmm", customModelAdmin, RestApiUtil.toJsonAsString(customModel), 201);
|
||||
HttpResponse response = post("cmm", RestApiUtil.toJsonAsString(customModel), 201);
|
||||
CustomModel returnedModel = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), CustomModel.class);
|
||||
if (author == null)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ public class BaseCustomModelApiTest extends AbstractBaseApiTest
|
||||
classModel.setParentName(parent);
|
||||
|
||||
// Create type as a Model Administrator
|
||||
HttpResponse response = post(uri, customModelAdmin, RestApiUtil.toJsonAsString(classModel), 201);
|
||||
HttpResponse response = post(uri, RestApiUtil.toJsonAsString(classModel), 201);
|
||||
T returnedClassModel = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), glazz);
|
||||
|
||||
compareCustomTypesAspects(classModel, returnedClassModel, "prefixedName");
|
||||
|
Reference in New Issue
Block a user