Author: jacopoc
Date: Sun Feb 14 08:54:58 2010
New Revision: 909992
URL:
http://svn.apache.org/viewvc?rev=909992&view=revLog:
Added assert statement to test the service getProductionRunCost
Modified:
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/test/ProductionRunTests.xml
Modified: ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/test/ProductionRunTests.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/test/ProductionRunTests.xml?rev=909992&r1=909991&r2=909992&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/test/ProductionRunTests.xml (original)
+++ ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/test/ProductionRunTests.xml Sun Feb 14 08:54:58 2010
@@ -559,6 +559,16 @@
</if-compare>
</iterate>
+ <clear-field field="serviceCtx"/>
+ <set field="serviceCtx.userLogin" from-field="userLogin"/>
+ <set field="serviceCtx.workEffortId" from-field="productionRunId"/>
+ <call-service service-name="getProductionRunCost" in-map-name="serviceCtx">
+ <result-to-field result-name="totalCost"/>
+ </call-service>
+ <assert>
+ <if-compare field="totalCost" operator="equals" value="135.67" type="BigDecimal"/>
+ </assert>
+
<set field="postedTotalAmount" value="0.0" type="BigDecimal"/>
<entity-and list="acctgTransList" entity-name="AcctgTrans">
<field-map field-name="acctgTransTypeId" value="INVENTORY"/>