Related to issue 32912: The test has been improved
authorNaroa Iriarte <naroa.iriarte@openbravo.com>
Thu, 12 May 2016 17:14:39 +0200
changeset 29503 27592b2005c6
parent 29502 bf305189b86e
child 29504 84003e2e052d
Related to issue 32912: The test has been improved

The test has been improved.
src-test/src/org/openbravo/test/datasource/EmptyStringWhereAndFilterClauseParameter.java
--- a/src-test/src/org/openbravo/test/datasource/EmptyStringWhereAndFilterClauseParameter.java	Wed May 11 15:19:19 2016 -0400
+++ b/src-test/src/org/openbravo/test/datasource/EmptyStringWhereAndFilterClauseParameter.java	Thu May 12 17:14:39 2016 +0200
@@ -51,7 +51,7 @@
         is(String.valueOf(JsonConstants.RPCREQUEST_STATUS_SUCCESS)));
   }
 
-  private Map<String, String> fillInTheParameters() throws Exception {
+  private Map<String, String> fillInTheParameters() {
     Map<String, String> params = new HashMap<String, String>();
     params.put("_targetRecordId", WAREHOUSE_LOCATOR_ID);
     params.put("_filterByParentProperty", "warehouse");
@@ -64,8 +64,8 @@
   }
 
   private String getDataSourceResponse() throws Exception {
-    String response = doRequest("/org.openbravo.service.datasource/" + "Locator",
-        fillInTheParameters(), 200, "POST");
+    String response = doRequest("/org.openbravo.service.datasource/Locator", fillInTheParameters(),
+        200, "POST");
     return response;
   }