From e79dd2c4611907aee3f9a3d80f836c09a79cdf02 Mon Sep 17 00:00:00 2001 From: Gethin James Date: Sat, 7 Sep 2013 22:08:10 +0000 Subject: [PATCH] Fixing failing test data - now requires valid "from" param git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@55077 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../test/webscript/EmailMapScriptTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/webscript/EmailMapScriptTest.java b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/webscript/EmailMapScriptTest.java index d071c5e1ef..5023a3eb30 100644 --- a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/webscript/EmailMapScriptTest.java +++ b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/webscript/EmailMapScriptTest.java @@ -57,7 +57,7 @@ public class EmailMapScriptTest extends BaseRMWebScriptTestCase /** Test POST */ JSONObject newMapping = new JSONObject(); - newMapping.put("from", "whatever"); + newMapping.put("from", "messageTo"); newMapping.put("to", "rmc:Wibble"); Response postResponse = sendRequest(new PostRequest(URL_RM_EMAILMAP, newMapping.toString(), APPLICATION_JSON), Status.STATUS_OK); @@ -77,7 +77,7 @@ public class EmailMapScriptTest extends BaseRMWebScriptTestCase assertFalse(postResponseContent.getString("message").isEmpty()); /** Test DELETE */ - Response deleteResponse = sendRequest(new DeleteRequest(String.format(URL_RM_EMAILMAP_DELETE, "whatever", "rmc:Wibble")), Status.STATUS_OK); + Response deleteResponse = sendRequest(new DeleteRequest(String.format(URL_RM_EMAILMAP_DELETE, "messageTo", "rmc:Wibble")), Status.STATUS_OK); JSONObject deleteResponseContent = new JSONObject(deleteResponse.getContentAsString()); JSONObject deleteData = deleteResponseContent.getJSONObject("data"); JSONArray deleteMappings = deleteData.getJSONArray("mappings"); @@ -100,7 +100,7 @@ public class EmailMapScriptTest extends BaseRMWebScriptTestCase { String from = mappings.getJSONObject(i).getString("from"); String to = mappings.getJSONObject(i).getString("to"); - if (from.equalsIgnoreCase("whatever") && to.equalsIgnoreCase("rmc:Wibble")) + if (from.equalsIgnoreCase("messageTo") && to.equalsIgnoreCase("rmc:Wibble")) { result = true; break;