details:   https://code.openbravo.com/erp/devel/pi/rev/b9227826b5dc
changeset: 32607:b9227826b5dc
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Wed Aug 30 14:10:12 2017 +0200
summary:   related to issue 36728: improved test to check that properties are 
not empty

diffstat:

 
src-test/src/org/openbravo/test/datasource/SelectorPickListFieldsDataSourceTest.java
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r d1b171923e5e -r b9227826b5dc 
src-test/src/org/openbravo/test/datasource/SelectorPickListFieldsDataSourceTest.java
--- 
a/src-test/src/org/openbravo/test/datasource/SelectorPickListFieldsDataSourceTest.java
      Wed Aug 30 13:57:11 2017 +0200
+++ 
b/src-test/src/org/openbravo/test/datasource/SelectorPickListFieldsDataSourceTest.java
      Wed Aug 30 14:10:12 2017 +0200
@@ -19,6 +19,7 @@
 
 package org.openbravo.test.datasource;
 
+import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 import java.util.Arrays;
@@ -56,7 +57,8 @@
   public void extraPropertyIsCalculated() throws Exception {
     JSONObject resp = performRequest();
     JSONObject product = resp.getJSONArray("data").getJSONObject(0);
-    assertTrue("Extra property is calculated", product.has(extraProperty));
+    assertTrue("Extra property is returned", product.has(extraProperty));
+    assertFalse("Extra property has a value", product.isNull(extraProperty));
   }
 
   private JSONObject performRequest() throws Exception {

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to