Added simple-method-test to call a simple-method as a service, without a service definition; also includes some various fixes including one from Joe in Jira OFBIZ-791

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2007-03-09 01:28:43 +00:00
parent f07485a4d8
commit 4516bbe6dd
10 changed files with 135 additions and 15 deletions
@@ -106,9 +106,7 @@ under the License.
</call-service>
<check-errors/>
<entity-one entity-name="Example" value-name="example" auto-field-map="false">
<field-map field-name="exampleId" value="lookupMap.exampleId"/>
</entity-one>
<find-by-primary-key entity-name="Example" map-name="lookupMap" value-name="example"/>
<assert>
<not><if-empty field-name="example"/></not>
@@ -116,11 +114,20 @@ under the License.
<check-errors/>
<assert>
<if-compare field-name="example.exampleTypeId" value="createExampleMap.exampleTypeId" operator="equals"/>
<if-compare field-name="example.exampleName" value="createExampleMap.exampleName" operator="equals"/>
<if-compare field-name="example.statusId" value="createExampleMap.statusId" operator="equals"/>
<if-compare-field field-name="example.exampleTypeId" to-field-name="createExampleMap.exampleTypeId" operator="equals"/>
</assert>
<check-errors/>
<assert>
<if-compare-field field-name="example.exampleName" to-field-name="createExampleMap.exampleName" operator="equals"/>
</assert>
<check-errors/>
<assert>
<if-compare-field field-name="example.statusId" to-field-name="createExampleMap.statusId" operator="equals"/>
</assert>
<check-errors/>
</simple-method>
</simple-methods>