Files
ofbiz-framework/framework/entity/minilang/EntityUtilPropertiesTests.xml
T
Jacques Le Roux 642f42886e A temporary workaround for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
Reverts the simple method to use the original schema without namespace. "Duplicates" simple-methods.xsd in simple-methods-ns.xsd as we did, to get the simple-method namespace for compound-widgets.

For myself: when we will do the 3rd more elegant option (no schema duplication), have been changed also:
minilang-catalog.xml
compound-widgets.xsd


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749938 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 16:40:22 +00:00

46 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="testGetGeneralProperties" short-description="test getting general properties" login-required="false">
<call-class-method ret-field="currencyUomIdDefault" method-name="getPropertyValue" class-name="org.ofbiz.entity.util.EntityUtilProperties">
<string value="general"/>
<string value="currency.uom.id.default"/>
<field field="delegator" type="org.ofbiz.entity.Delegator"/>
</call-class-method>
<assert><if-compare field="currencyUomIdDefault" operator="equals" value="THB"></if-compare></assert>
<call-class-method ret-field="defaultFromEmailAddress" method-name="getPropertyValue" class-name="org.ofbiz.entity.util.EntityUtilProperties">
<string value="general"/>
<string value="defaultFromEmailAddress"/>
<field field="delegator" type="org.ofbiz.entity.Delegator"/>
</call-class-method>
<assert><if-compare field="defaultFromEmailAddress" operator="equals" value="propertytest@example.com"></if-compare></assert>
<property-to-field resource="general" property="currency.uom.id.default" field="currencyUomIdDefault"/>
<assert><if-compare field="currencyUomIdDefault" operator="equals" value="THB"></if-compare></assert>
<property-to-field resource="general" property="defaultFromEmailAddress" field="defaultFromEmailAddress"/>
<assert><if-compare field="defaultFromEmailAddress" operator="equals" value="propertytest@example.com"></if-compare></assert>
</simple-method>
</simple-methods>