Files
ofbiz-framework/applications/order/minilang/test/OrderTests.xml
T
Taher A. Alkhateeb 7b32c6a2b8 Implemented: remove final remaining dependencies from framework on plugins
(OFBIZ-9322)

This commit completes the removal of final dependency on plugins. After this
commit tests can run successfully on framework stand-alone. This is achieved by
removing portions of failing tests described in more detail in below ML thread

Discussion thread: https://s.apache.org/3fiL


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793633 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 10:44:55 +00:00

157 lines
7.8 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"
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="testCreateOrderDeliverySchedule" short-description="Create Order Delivery Schedule" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.orderId" value="TEST_DEMO10090"/>
<call-service service-name="createOrderDeliverySchedule" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateOrderItemChange" short-description="create Order Item Change" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.changeTypeEnumId" value="ODR_ITM_APPEND"/>
<set field="serviceCtx.orderId" value="TEST_DEMO10090"/>
<set field="serviceCtx.orderItemSeqId" value="00001"/>
<call-service service-name="createOrderItemChange" in-map-name="serviceCtx">
<results-to-map map-name="orderItemChangeId"/>
</call-service>
<assert>
<not><if-empty field="orderItemChangeId"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateOrderPaymentApplication" short-description="create Order Payment Application" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.paymentId" value="1014"/>
<call-service service-name="createOrderPaymentApplication" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateRequirement" short-description="Create Requirement" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.custRequestId" value="9000"/>
<set field="serviceCtx.requirementTypeId" value="CUSTOMER_REQUIREMENT"/>
<call-service service-name="createRequirement" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testGetRequirementsForSupplier" short-description="Get Requirements For Supplier" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.partyId" value="Company"/>
<call-service service-name="getRequirementsForSupplier" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateRequirementRole" short-description="Create Requirement Role" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.requirementId" value="1000"/>
<set field="serviceCtx.roleTypeId" value="OWNER"/>
<set field="serviceCtx.partyId" value="Company"/>
<call-service service-name="createRequirementRole" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateRequirementFromItemATP" short-description="Create Requirement From Item ATP" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.orderId" value="TEST_DEMO10090"/>
<set field="serviceCtx.orderItemSeqId" value="00001"/>
<set field="serviceCtx.shipGroupSeqId" value="00001"/>
<call-service service-name="createRequirementFromItemATP" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateAutoRequirementsForOrder" short-description="Create AutoRequirements For Order" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.orderId" value="TEST_DEMO10090"/>
<call-service service-name="createAutoRequirementsForOrder" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
<simple-method method-name="testCreateATPRequirementsForOrder" short-description="Create ATP Requirements For Order" login-required="false">
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set-current-user-login value-field="userLogin"/>
<set field="serviceCtx.orderId" value="TEST_DEMO10090"/>
<call-service service-name="createATPRequirementsForOrder" in-map-name="serviceCtx">
<results-to-map map-name="serviceResult"/>
</call-service>
<assert>
<not><if-empty field="serviceResult"/></not>
</assert>
<check-errors/>
</simple-method>
</simple-methods>