mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Fix to broken unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -500,24 +500,7 @@ public class RuleServiceTest extends BaseWebScriptTest
|
||||
assertTrue(successData.has("action"));
|
||||
|
||||
// execute before response (should fail)
|
||||
Response failResponse = sendRequest(new PostRequest(url, copyAction.toString(), "application/json"), 200);
|
||||
|
||||
JSONObject failResult = new JSONObject(failResponse.getContentAsString());
|
||||
|
||||
assertNotNull(failResult);
|
||||
|
||||
assertTrue(failResult.has("data"));
|
||||
|
||||
JSONObject failData = failResult.getJSONObject("data");
|
||||
|
||||
assertTrue(failData.has("status"));
|
||||
assertEquals("fail", failData.getString("status"));
|
||||
assertTrue(failData.has("actionedUponNode"));
|
||||
assertTrue(failData.has("exception"));
|
||||
JSONObject exception = failData.getJSONObject("exception");
|
||||
assertTrue(exception.has("message"));
|
||||
assertTrue(exception.has("stackTrace"));
|
||||
assertTrue(failData.has("action"));
|
||||
sendRequest(new PostRequest(url, copyAction.toString(), "application/json"), 500);
|
||||
|
||||
// execute after response (should fail but error should not present in response)
|
||||
String asyncUrl = formateQueueActionUrl(true);
|
||||
|
Reference in New Issue
Block a user