details: https://code.openbravo.com/erp/devel/pi/rev/924de462d2b4
changeset: 22901:924de462d2b4
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Wed Apr 23 08:34:49 2014 +0200
summary: related to issue 2638: proper log in test case
diffstat:
src-test/org/openbravo/test/datasource/SelectorFieldPropertySelectorDSTest.java
| 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (47 lines):
diff -r 6915a46d8ad2 -r 924de462d2b4
src-test/org/openbravo/test/datasource/SelectorFieldPropertySelectorDSTest.java
---
a/src-test/org/openbravo/test/datasource/SelectorFieldPropertySelectorDSTest.java
Tue Apr 22 17:36:02 2014 +0200
+++
b/src-test/org/openbravo/test/datasource/SelectorFieldPropertySelectorDSTest.java
Wed Apr 23 08:34:49 2014 +0200
@@ -24,6 +24,8 @@
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* Tests Property selector datasource. Checking issue #26238 is not reproduced
anymore.
@@ -32,6 +34,8 @@
*
*/
public class SelectorFieldPropertySelectorDSTest extends
BaseDataSourceTestNoDal {
+ private static final Logger log = LoggerFactory
+ .getLogger(SelectorFieldPropertySelectorDSTest.class);
private boolean sysAdminProfileSet = false;
/**
@@ -40,8 +44,6 @@
public void testFullList() throws Exception {
JSONObject resp = executeDSRequest(false);
- System.out.println(resp.toString(2));
-
JSONArray data = resp.getJSONArray("data");
assertTrue("data should contain several values, it has " + data.length(),
data.length() > 1);
@@ -59,8 +61,6 @@
assertEquals("data length", data.length(), 1);
assertEquals("totalRows", resp.getInt("totalRows"), 1);
-
- System.out.println(resp.toString(2));
}
private JSONObject executeDSRequest(boolean filter) throws Exception {
@@ -96,6 +96,7 @@
assertTrue("expecting response, got: " + resp, resp.has("response"));
JSONObject r = resp.getJSONObject("response");
+ log.debug("Response: {}", r);
assertTrue("expecting data in response, got: " + r, r.has("data"));
return r;
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits