Author: mor
Date: Sat Feb 6 05:52:40 2010
New Revision: 907176
URL: http://svn.apache.org/viewvc?rev=907176&view=rev
Log:
Moved test case to more appropriate place.
Added:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
(with props)
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
ofbiz/trunk/applications/product/testdef/FacilityTest.xml
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?rev=907176&r1=907175&r2=907176&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
(original)
+++
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
Sat Feb 6 05:52:40 2010
@@ -1234,26 +1234,6 @@
<remove-value value-field="lookedUpValue"/>
</simple-method>
- <!-- Test Physical Inventory Adjustment -->
- <simple-method method-name="testPhysicalInventoryAdjustment"
short-description="Test to create physical inventory and variance"
login-required="false">
- <log level="info" message="====================Create physical
inventory and variance test case================================"/>
- <set field="createPhysicalInventoryAndVarianceMap.inventoryItemId"
value="9024"/>
- <set field="createPhysicalInventoryAndVarianceMap.varianceReasonId"
value="VAR_LOST"/>
- <entity-one entity-name="UserLogin"
value-field="createPhysicalInventoryAndVarianceMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="createPhysicalInventoryAndVariance"
in-map-name="createPhysicalInventoryAndVarianceMap">
- <result-to-field result-name="physicalInventoryId"
field="physicalInventoryId"/>
- </call-service>
- <assert>
- <not>
- <if-empty field="physicalInventoryId">
- <log level="info" message="========physicalInventoryId
${physicalInventoryId} found null============================"/>
- </if-empty>
- </not>
- </assert>
- <check-errors/>
- </simple-method>
<simple-method method-name="changeOwnerUponIssuance" short-description="If
product store setOwnerUponIssuance is Y or empty, set the inventory item owner
upon issuance.">
<entity-one entity-name="ItemIssuance" value-field="itemIssuance"/>
<get-related-one value-field="itemIssuance"
relation-name="InventoryItem" to-value-field="inventoryItem"/>
Added:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml?rev=907176&view=auto
==============================================================================
---
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
(added)
+++
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
Sat Feb 6 05:52:40 2010
@@ -0,0 +1,44 @@
+<?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">
+
+ <!-- Test Physical Inventory Adjustment -->
+ <simple-method method-name="testPhysicalInventoryAdjustment"
short-description="Test to create physical inventory and variance"
login-required="false">
+ <log level="info" message="====================Create physical
inventory and variance test case================================"/>
+ <set field="createPhysicalInventoryAndVarianceMap.inventoryItemId"
value="9024"/>
+ <set field="createPhysicalInventoryAndVarianceMap.varianceReasonId"
value="VAR_LOST"/>
+ <entity-one entity-name="UserLogin"
value-field="createPhysicalInventoryAndVarianceMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="createPhysicalInventoryAndVariance"
in-map-name="createPhysicalInventoryAndVarianceMap">
+ <result-to-field result-name="physicalInventoryId"
field="physicalInventoryId"/>
+ </call-service>
+ <assert>
+ <not>
+ <if-empty field="physicalInventoryId">
+ <log level="info" message="========physicalInventoryId
${physicalInventoryId} found null============================"/>
+ </if-empty>
+ </not>
+ </assert>
+ <check-errors/>
+ </simple-method>
+</simple-methods>
\ No newline at end of file
Propchange:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/FacilityTests.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: ofbiz/trunk/applications/product/testdef/FacilityTest.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/testdef/FacilityTest.xml?rev=907176&r1=907175&r2=907176&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/testdef/FacilityTest.xml (original)
+++ ofbiz/trunk/applications/product/testdef/FacilityTest.xml Sat Feb 6
05:52:40 2010
@@ -28,9 +28,8 @@
<junit-test-suite
class-name="org.ofbiz.product.test.InventoryItemTransferTest"/>
</test-case>
<!-- Physical Inventory Adjustment test -->
- <!-- TODO: Move the test implementation to a more appropriate place -->
<test-case case-name="physicalInventoryAdjustment-test">
- <simple-method-test
location="component://product/script/org/ofbiz/product/inventory/InventoryServices.xml"
name="testPhysicalInventoryAdjustment"/>
+ <simple-method-test
location="component://product/script/org/ofbiz/shipment/test/FacilityTests.xml"
name="testPhysicalInventoryAdjustment"/>
</test-case>
<test-case case-name="shipment-tests">