mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5837 Only assert the return code if we're not expecting a failure.
This commit is contained in:
@@ -408,7 +408,10 @@ public abstract class BaseAPI
|
||||
try
|
||||
{
|
||||
HttpResponse httpResponse = doRequestJson(HttpPost.class, requestUrl, adminUser, adminPassword, requestParams);
|
||||
if (!expectFailure)
|
||||
{
|
||||
assertEquals("POST request was not successful.", httpResponse.getStatusLine().getStatusCode(), 200);
|
||||
}
|
||||
return httpResponse;
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException error)
|
||||
|
Reference in New Issue
Block a user