details: https://code.openbravo.com/erp/devel/pi/rev/64fb37a18f49 changeset: 24213:64fb37a18f49 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Mon Aug 04 08:58:43 2014 +0200 summary: related to bug 27234: added test case
details: https://code.openbravo.com/erp/devel/pi/rev/ca197a91d631 changeset: 24214:ca197a91d631 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Tue Aug 05 14:23:02 2014 +0200 summary: fixed issue 27276: diagnostics desupport for pg 8.3 + ora 10 Minimum required versions are now: -PostrgeSQL: 8.4 -Oracle: 10 diffstat: src-test/org/openbravo/test/datasource/FICTest.java | 57 +++++++++++++++++++++ src-util/diagnostic/config/diagnostics.properties | 8 +- 2 files changed, 61 insertions(+), 4 deletions(-) diffs (88 lines): diff -r b4c15099de6b -r ca197a91d631 src-test/org/openbravo/test/datasource/FICTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src-test/org/openbravo/test/datasource/FICTest.java Tue Aug 05 14:23:02 2014 +0200 @@ -0,0 +1,57 @@ +/* + ************************************************************************* + * The contents of this file are subject to the Openbravo Public License + * Version 1.1 (the "License"), being the Mozilla Public License + * Version 1.1 with a permitted attribution clause; you may not use this + * file except in compliance with the License. You may obtain a copy of + * the License at http://www.openbravo.com/legal/license.html + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the + * License for the specific language governing rights and limitations + * under the License. + * The Original Code is Openbravo ERP. + * The Initial Developer of the Original Code is Openbravo SLU + * All portions are Copyright (C) 2014 Openbravo SLU + * All Rights Reserved. + * Contributor(s): ______________________________________. + ************************************************************************ + */ + +package org.openbravo.test.datasource; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; +import org.codehaus.jettison.json.JSONObject; + +/** + * Test cases for FormInitializationComponent + * + * @author alostale + * + */ +public class FICTest extends BaseDataSourceTestNoDal { + + /** + * Auxiliary Input for which SQL can't be evaluated on NEW and the value is correctly set by + * callouts, should be populated when creating a new record. + * + * See issue #27234 + */ + public void testAuxiliaryInputBasedOnCallout() throws Exception { + Map<String, String> params = new HashMap<String, String>(); + params.put("MODE", "NEW"); + params.put("_action", "org.openbravo.client.application.window.FormInitializationComponent"); + params.put("TAB_ID", "186"); // Sales Order + params.put("PARENT_ID", null); + String response = doRequest("/org.openbravo.client.kernel", params, 200, "POST"); + + JSONObject auxiliaryInputs = new JSONObject(response).getJSONObject("auxiliaryInputValues"); + assertTrue("ORDERTYPE should be set", auxiliaryInputs.has("ORDERTYPE")); + + JSONObject orderType = auxiliaryInputs.getJSONObject("ORDERTYPE"); + assertTrue("ORDERTYPE should have value", + orderType.has("value") && StringUtils.isNotEmpty(orderType.getString("value"))); + } +} diff -r b4c15099de6b -r ca197a91d631 src-util/diagnostic/config/diagnostics.properties --- a/src-util/diagnostic/config/diagnostics.properties Tue Aug 05 12:37:18 2014 +0200 +++ b/src-util/diagnostic/config/diagnostics.properties Tue Aug 05 14:23:02 2014 +0200 @@ -11,7 +11,7 @@ # * under the License. # * The Original Code is Openbravo ERP. # * The Initial Developer of the Original Code is Openbravo SLU -# * All portions are Copyright (C) 2008-2010 Openbravo SLU +# * All portions are Copyright (C) 2008-2014 Openbravo SLU # * All Rights Reserved. # * Contributor(s): ______________________________________. # ************************************************************************ @@ -20,11 +20,11 @@ max.memory=512 jvm-version=1.6 -db.ora.version=10 +db.ora.version=11.1 db.ora.opencursors=3000 db.ora.processes=150 -db.pg.version=8.3.3 -db.pg.windows.version=8.3.5 +db.pg.version=8.4 +db.pg.windows.version=8.4 tomcat.version=6 ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
