RM: Fix up unit test and event web script

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-07-02 06:11:34 +00:00
parent e2880151bc
commit 01246a3c7d
2 changed files with 16 additions and 2 deletions

View File

@@ -181,6 +181,11 @@ public class EventRestApiTest extends BaseRMWebScriptTestCase implements Records
assertEquals(EVENT_TYPE, eventObj.get(KEY_EVENT_TYPE));
// Bad requests
obj = new JSONObject();
obj.put(KEY_EVENT_NAME, "cheese");
obj.put(KEY_EVENT_DISPLAY_LABEL, "whatever");
obj.put(KEY_EVENT_TYPE, EVENT_TYPE);
sendRequest(new PutRequest(GET_EVENTS_URL + "/cheese", obj.toString(), APPLICATION_JSON), 404);
}
finally