mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Build Fix for failure in org.alfresco.repo.cmis.rest.test.PolicyTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23994 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -125,7 +125,7 @@ public abstract class BaseCMISTest extends BaseWebScriptTest
|
|||||||
return createObject(parent, name, type, 201);
|
return createObject(parent, name, type, 201);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Entry createObject(IRI parent, String name, String type, int expectedStatus) throws Exception
|
protected <T extends Element> T createObject(IRI parent, String name, String type, int expectedStatus) throws Exception
|
||||||
{
|
{
|
||||||
String createObject = localTemplates.load("BaseCMISTest.createObject.atomentry.xml");
|
String createObject = localTemplates.load("BaseCMISTest.createObject.atomentry.xml");
|
||||||
createObject = createObject.replace("${NAME}", name);
|
createObject = createObject.replace("${NAME}", name);
|
||||||
@@ -136,7 +136,8 @@ public abstract class BaseCMISTest extends BaseWebScriptTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
String xml = res.getContentAsString();
|
String xml = res.getContentAsString();
|
||||||
return parse(new StringReader(xml));
|
T entry = parse(new StringReader(xml));
|
||||||
|
return entry;
|
||||||
}
|
}
|
||||||
catch (ParseException e)
|
catch (ParseException e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user