mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge RM-4159_EnterpriseReSTTests into RM-4339_RestTestsGuideTopicApi.
This commit is contained in:
@@ -67,6 +67,11 @@ public class RestAPIFactory
|
|||||||
return this.rmRestWrapper;
|
return this.rmRestWrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setRmRestWrapper(RMRestWrapper rmRestWrapper)
|
||||||
|
{
|
||||||
|
this.rmRestWrapper = rmRestWrapper;
|
||||||
|
}
|
||||||
|
|
||||||
private RestIGCoreAPI getRestIGCoreAPI(UserModel userModel)
|
private RestIGCoreAPI getRestIGCoreAPI(UserModel userModel)
|
||||||
{
|
{
|
||||||
getRmRestWrapper().authenticateUser(userModel != null ? userModel : dataUser.getAdminUser());
|
getRmRestWrapper().authenticateUser(userModel != null ? userModel : dataUser.getAdminUser());
|
||||||
|
@@ -100,7 +100,7 @@ public class BaseRMRestTest extends RestTest
|
|||||||
*/
|
*/
|
||||||
protected void assertStatusCode(HttpStatus statusCode)
|
protected void assertStatusCode(HttpStatus statusCode)
|
||||||
{
|
{
|
||||||
getRestAPIFactory().getRmRestWrapper().assertStatusCodeIs(statusCode);
|
restAPIFactory.getRmRestWrapper().assertStatusCodeIs(statusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -145,7 +145,7 @@ public class BaseRMRestTest extends RestTest
|
|||||||
*/
|
*/
|
||||||
public void createRMSiteIfNotExists() throws Exception
|
public void createRMSiteIfNotExists() throws Exception
|
||||||
{
|
{
|
||||||
RMSiteAPI rmSiteAPI = getRestAPIFactory().getRMSiteAPI();
|
RMSiteAPI rmSiteAPI = restAPIFactory.getRMSiteAPI();
|
||||||
|
|
||||||
// Check RM site doesn't exist
|
// Check RM site doesn't exist
|
||||||
if (!rmSiteAPI.existsRMSite())
|
if (!rmSiteAPI.existsRMSite())
|
||||||
|
Reference in New Issue
Block a user