Related to issue 39278: A new ProcessHQLQuery to export the product stock by
authorJorge Garcia <jorge.garcia@openbravo.com>
Tue, 30 Oct 2018 10:25:59 +0100
changeset 7834 f9d9636eef7f
parent 7833 0a68c6993934
child 7839 0b55003febf9
Related to issue 39278: A new ProcessHQLQuery to export the product stock by
assortment is needed

Modify POSProductStockRequest test to verify product searchkey.
src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/retailapi/POSProductStockRequest.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/retailapi/POSProductStockRequest.java	Wed Oct 31 06:51:48 2018 +0000
+++ b/src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/retailapi/POSProductStockRequest.java	Tue Oct 30 10:25:59 2018 +0100
@@ -59,6 +59,7 @@
     JSONObject firstElementOfJSON = responseData.getJSONObject(0);
     assertThat(firstElementOfJSON.getString("m_product_id"),
         equalTo("0464BE82FEC8438488C79797A1F18099"));
+    assertThat(firstElementOfJSON.getString("searchKey"), equalTo("WVG/B0001"));
     assertThat(firstElementOfJSON.getString("m_warehouse_id"),
         equalTo("A154EC30A296479BB078B0AFFD74CA22"));
     assertThat(firstElementOfJSON.getLong("availableStock"), equalTo(100L));