You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2008/06/14 14:48:46 UTC
svn commit: r667795 - in /ofbiz/trunk/applications:
party/script/org/ofbiz/party/test/PartyTestServices.xml
party/testdef/PartyTests.xml
workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
workeffort/testdef/workefforttests.xml
Author: lektran
Date: Sat Jun 14 05:48:46 2008
New Revision: 667795
URL: http://svn.apache.org/viewvc?rev=667795&view=rev
Log:
Moved a couple of party related tests from workeffort to party and removed some duplicate tests
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
ofbiz/trunk/applications/party/testdef/PartyTests.xml
ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
ofbiz/trunk/applications/workeffort/testdef/workefforttests.xml
Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml?rev=667795&r1=667794&r2=667795&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml Sat Jun 14 05:48:46 2008
@@ -382,4 +382,92 @@
</assert>
<check-errors/>
</simple-method>
+ <simple-method method-name="testAddRole" short-description="test to add a new role to a party" login-required="false">
+ <log level="info" message="====================Add a new role to a party test case=========================================="/>
+ <set field="addRoleMap.partyId" value="DemoCustomer"/>
+ <set field="addRoleMap.roleTypeId" value="SUPPLIER"/>
+ <entity-one entity-name="UserLogin" value-name="addRoleMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="createPartyRole" in-map-name="addRoleMap"/>
+ <check-errors/>
+ </simple-method>
+ <simple-method method-name="testCreateNewCommEvent" short-description="test to create a new communication event" login-required="false">
+ <log level="info" message="====================Create a new communication event test case=========================================="/>
+ <set field="createNewCommEventMap.communicationEventTypeId" value="EMAIL_COMMUNICATION"/>
+ <set field="createNewCommEventMap.statusId" value="COM_COMPLETE"/>
+ <set field="createNewCommEventMap.partyIdFrom" value="DemoCustomer"/>
+ <set field="createNewCommEventMap.contactMechTypeId" value="EMAIL_ADDRESS"/>
+ <entity-one entity-name="UserLogin" value-name="createNewCommEventMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="createCommunicationEvent" in-map-name="createNewCommEventMap">
+ <result-to-field result-name="communicationEventId" field-name="communicationEventId" map-name="commEventMap"/>
+ </call-service>
+ <call-simple-method method-name="testUpdateCommEvent"/>
+ <entity-one entity-name="CommunicationEvent" value-name="communicationEvent">
+ <field-map field-name="communicationEventId" env-name="commEventMap.communicationEventId"/>
+ </entity-one>
+ <assert>
+ <not><if-empty field="communicationEvent"/></not>
+ <if-compare-field field="communicationEvent.communicationEventId" to-field="commEventMap.communicationEventId" operator="equals"/>
+ <if-compare-field field="communicationEvent.communicationEventTypeId" to-field="updateCommEventMap.communicationEventTypeId" operator="equals"/>
+ <if-compare-field field="communicationEvent.statusId" to-field="updateCommEventMap.statusId" operator="equals"/>
+ <if-compare-field field="communicationEvent.partyIdFrom" to-field="updateCommEventMap.partyIdFrom" operator="equals"/>
+ <if-compare-field field="communicationEvent.contactMechTypeId" to-field="updateCommEventMap.contactMechTypeId" operator="equals"/>
+ </assert>
+ <check-errors/>
+ </simple-method>
+ <simple-method method-name="testUpdateCommEvent" short-description="test to update communication event" login-required="false">
+ <log level="info" message="====================Update communication event test case=========================================="/>
+ <set field="updateCommEventMap.communicationEventId" from-field="commEventMap.communicationEventId"/>
+ <set field="updateCommEventMap.communicationEventTypeId" value="AUTO_EMAIL_COMM"/>
+ <set field="updateCommEventMap.statusId" value="COM_ENTERED"/>
+ <set field="updateCommEventMap.partyIdFrom" value="admin"/>
+ <set field="updateCommEventMap.contactMechTypeId" value="ELECTRONIC_ADDRESS"/>
+ <entity-one entity-name="UserLogin" value-name="updateCommEventMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="updateCommunicationEvent" in-map-name="updateCommEventMap"/>
+ <check-errors/>
+ </simple-method>
+ <simple-method method-name="testCreateNewRequest" short-description="create a new request" login-required="false">
+ <log level="info" message="====================Create a new request test case=========================================="/>
+ <set field="createNewRequestMap.custRequestTypeId" value="RF_PROPOSAL"/>
+ <set field="createNewRequestMap.statusId" value="CRQ_SUBMITTED"/>
+ <set field="createNewRequestMap.priority" value="1L" type="Long"/>
+ <set field="createNewRequestMap.fromPartyId" value="DemoCustomer"/>
+ <entity-one entity-name="UserLogin" value-name="createNewRequestMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="createCustRequest" in-map-name="createNewRequestMap">
+ <result-to-field result-name="custRequestId" field-name="custRequestId" map-name="requestMap"/>
+ </call-service>
+ <call-simple-method method-name="testUpdateRequest"/>
+ <entity-one entity-name="CustRequest" value-name="custRequest">
+ <field-map field-name="custRequestId" env-name="requestMap.custRequestId"/>
+ </entity-one>
+ <assert>
+ <not><if-empty field="custRequest"/></not>
+ <if-compare-field field="custRequest.custRequestId" to-field="requestMap.custRequestId" operator="equals"/>
+ <if-compare-field field="custRequest.custRequestTypeId" to-field="updateRequestMap.custRequestTypeId" operator="equals"/>
+ <if-compare-field field="custRequest.statusId" to-field="updateRequestMap.statusId" operator="equals"/>
+ <if-compare-field field="custRequest.priority" to-field="updateRequestMap.priority" operator="equals"/>
+ <if-compare-field field="custRequest.fromPartyId" to-field="updateRequestMap.fromPartyId" operator="equals"/>
+ </assert>
+ <check-errors/>
+ </simple-method>
+ <simple-method method-name="testUpdateRequest" short-description="update a request" login-required="false">
+ <log level="info" message="====================Update a request test case=========================================="/>
+ <set field="updateRequestMap.custRequestId" from-field="requestMap.custRequestId"/>
+ <set field="updateRequestMap.custRequestTypeId" value="RF_INFO"/>
+ <set field="updateRequestMap.statusId" value="CRQ_COMPLETED"/>
+ <set field="updateRequestMap.priority" value="2L" type="Long"/>
+ <set field="updateRequestMap.fromPartyId" value="admin"/>
+ <entity-one entity-name="UserLogin" value-name="updateRequestMap.userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <call-service service-name="updateCustRequest" in-map-name="updateRequestMap"/>
+ <check-errors/>
+ </simple-method>
</simple-methods>
Modified: ofbiz/trunk/applications/party/testdef/PartyTests.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/testdef/PartyTests.xml?rev=667795&r1=667794&r2=667795&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/testdef/PartyTests.xml (original)
+++ ofbiz/trunk/applications/party/testdef/PartyTests.xml Sat Jun 14 05:48:46 2008
@@ -40,4 +40,13 @@
<test-case case-name="test-Update password">
<simple-method-test location="component://party/script/org/ofbiz/party/test/PartyTestServices.xml" name="testUpdateUserPassword"/>
</test-case>
+ <test-case case-name="test-Add role">
+ <simple-method-test location="component://party/script/org/ofbiz/party/test/PartyTestServices.xml" name="testAddRole"/>
+ </test-case>
+ <test-case case-name="test-CreateNewCommEvent">
+ <simple-method-test location="component://party/script/org/ofbiz/party/test/PartyTestServices.xml" name="testCreateNewCommEvent"/>
+ </test-case>
+ <test-case case-name="test-CreateNewRequest">
+ <simple-method-test location="component://party/script/org/ofbiz/party/test/PartyTestServices.xml" name="testCreateNewRequest"/>
+ </test-case>
</test-suite>
\ No newline at end of file
Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=667795&r1=667794&r2=667795&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Sat Jun 14 05:48:46 2008
@@ -1277,165 +1277,4 @@
</call-service>
<check-errors/>
</simple-method>
- <simple-method method-name="testUpdateContactInfo" short-description="test to update contact information of a party" login-required="false">
- <log level="info" message="====================Update a contact information of a party test case=========================================="/>
- <set field="updateContactInfoMap.partyId" value="DemoCustomer"/>
- <set field="updateContactInfoMap.contactMechId" value="9025"/>
- <set field="updateContactInfoMap.emailAddress" value="ofbiztest@yahoo.com"/>
- <entity-one entity-name="UserLogin" value-name="updateContactInfoMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="updatePartyEmailAddress" in-map-name="updateContactInfoMap">
- <result-to-field result-name="contactMechId" field-name="contactMechId"/>
- <result-to-field result-name="oldContactMechId" field-name="oldContactMechId"/>
- </call-service>
- <assert>
- <not>
- <if-empty field="contactMechId">
- <log level="info" message="========contactMechId ${contactMechId} found null============================"/>
- </if-empty>
- </not>
- <not>
- <if-empty field="oldContactMechId">
- <log level="info" message="========oldContactMechId ${oldContactMechId} found null============================"/>
- </if-empty>
- </not>
- </assert>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testUpdateTeleCom" short-description="test to update telecom information of a party" login-required="false">
- <log level="info" message="====================Update telecom information test case=========================================="/>
- <set field="updateTeleComMap.contactNumber" value="456789"/>
- <set field="updateTeleComMap.contactMechId" value="10120"/>
- <entity-one entity-name="UserLogin" value-name="updateTeleComMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="updateTelecomNumber" in-map-name="updateTeleComMap">
- <result-to-field result-name="contactMechId" field-name="contactMechId"/>
- <result-to-field result-name="oldContactMechId" field-name="oldContactMechId"/>
- </call-service>
- <assert>
- <not>
- <if-empty field="contactMechId">
- <log level="info" message="========contactMechId ${contactMechId} found null============================"/>
- </if-empty>
- </not>
- <not>
- <if-empty field="oldContactMechId">
- <log level="info" message="========oldContactMechId ${oldContactMechId} found null============================"/>
- </if-empty>
- </not>
- </assert>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testUpdatePostalAddr" short-description="test to update postal address information of a party" login-required="false">
- <log level="info" message="====================Update postal address information test case=========================================="/>
- <set field="updatePostalAddrMap.partyId" value="DemoCustCompany"/>
- <set field="updatePostalAddrMap.contactMechId" value="9010"/>
- <set field="updatePostalAddrMap.address1" value="2003 Open Blvd "/>
- <set field="updatePostalAddrMap.city" value="Open City "/>
- <set field="updatePostalAddrMap.postalCode" value="555555"/>
- <entity-one entity-name="UserLogin" value-name="updatePostalAddrMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="updatePartyPostalAddress" in-map-name="updatePostalAddrMap">
- <result-to-field result-name="contactMechId" field-name="contactMechId"/>
- </call-service>
- <assert>
- <not>
- <if-empty field="contactMechId">
- <log level="info" message="========contactMechId ${contactMechId} found null============================"/>
- </if-empty>
- </not>
- </assert>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testAddRole" short-description="test to add a new role to a party" login-required="false">
- <log level="info" message="====================Add a new role to a party test case=========================================="/>
- <set field="addRoleMap.partyId" value="DemoCustomer"/>
- <set field="addRoleMap.roleTypeId" value="SUPPLIER"/>
- <entity-one entity-name="UserLogin" value-name="addRoleMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="createPartyRole" in-map-name="addRoleMap"/>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testCreateNewCommEvent" short-description="test to create a new communication event" login-required="false">
- <log level="info" message="====================Create a new communication event test case=========================================="/>
- <set field="createNewCommEventMap.communicationEventTypeId" value="EMAIL_COMMUNICATION"/>
- <set field="createNewCommEventMap.statusId" value="COM_COMPLETE"/>
- <set field="createNewCommEventMap.partyIdFrom" value="DemoCustomer"/>
- <set field="createNewCommEventMap.contactMechTypeId" value="EMAIL_ADDRESS"/>
- <entity-one entity-name="UserLogin" value-name="createNewCommEventMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="createCommunicationEvent" in-map-name="createNewCommEventMap">
- <result-to-field result-name="communicationEventId" field-name="communicationEventId" map-name="commEventMap"/>
- </call-service>
- <call-simple-method method-name="testUpdateCommEvent"/>
- <entity-one entity-name="CommunicationEvent" value-name="communicationEvent">
- <field-map field-name="communicationEventId" env-name="commEventMap.communicationEventId"/>
- </entity-one>
- <assert>
- <not><if-empty field="communicationEvent"/></not>
- <if-compare-field field="communicationEvent.communicationEventId" to-field="commEventMap.communicationEventId" operator="equals"/>
- <if-compare-field field="communicationEvent.communicationEventTypeId" to-field="updateCommEventMap.communicationEventTypeId" operator="equals"/>
- <if-compare-field field="communicationEvent.statusId" to-field="updateCommEventMap.statusId" operator="equals"/>
- <if-compare-field field="communicationEvent.partyIdFrom" to-field="updateCommEventMap.partyIdFrom" operator="equals"/>
- <if-compare-field field="communicationEvent.contactMechTypeId" to-field="updateCommEventMap.contactMechTypeId" operator="equals"/>
- </assert>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testUpdateCommEvent" short-description="test to update communication event" login-required="false">
- <log level="info" message="====================Update communication event test case=========================================="/>
- <set field="updateCommEventMap.communicationEventId" from-field="commEventMap.communicationEventId"/>
- <set field="updateCommEventMap.communicationEventTypeId" value="AUTO_EMAIL_COMM"/>
- <set field="updateCommEventMap.statusId" value="COM_ENTERED"/>
- <set field="updateCommEventMap.partyIdFrom" value="admin"/>
- <set field="updateCommEventMap.contactMechTypeId" value="ELECTRONIC_ADDRESS"/>
- <entity-one entity-name="UserLogin" value-name="updateCommEventMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="updateCommunicationEvent" in-map-name="updateCommEventMap"/>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testCreateNewRequest" short-description="create a new request" login-required="false">
- <log level="info" message="====================Create a new request test case=========================================="/>
- <set field="createNewRequestMap.custRequestTypeId" value="RF_PROPOSAL"/>
- <set field="createNewRequestMap.statusId" value="CRQ_SUBMITTED"/>
- <set field="createNewRequestMap.priority" value="1L" type="Long"/>
- <set field="createNewRequestMap.fromPartyId" value="DemoCustomer"/>
- <entity-one entity-name="UserLogin" value-name="createNewRequestMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="createCustRequest" in-map-name="createNewRequestMap">
- <result-to-field result-name="custRequestId" field-name="custRequestId" map-name="requestMap"/>
- </call-service>
- <call-simple-method method-name="testUpdateRequest"/>
- <entity-one entity-name="CustRequest" value-name="custRequest">
- <field-map field-name="custRequestId" env-name="requestMap.custRequestId"/>
- </entity-one>
- <assert>
- <not><if-empty field="custRequest"/></not>
- <if-compare-field field="custRequest.custRequestId" to-field="requestMap.custRequestId" operator="equals"/>
- <if-compare-field field="custRequest.custRequestTypeId" to-field="updateRequestMap.custRequestTypeId" operator="equals"/>
- <if-compare-field field="custRequest.statusId" to-field="updateRequestMap.statusId" operator="equals"/>
- <if-compare-field field="custRequest.priority" to-field="updateRequestMap.priority" operator="equals"/>
- <if-compare-field field="custRequest.fromPartyId" to-field="updateRequestMap.fromPartyId" operator="equals"/>
- </assert>
- <check-errors/>
- </simple-method>
- <simple-method method-name="testUpdateRequest" short-description="update a request" login-required="false">
- <log level="info" message="====================Update a request test case=========================================="/>
- <set field="updateRequestMap.custRequestId" from-field="requestMap.custRequestId"/>
- <set field="updateRequestMap.custRequestTypeId" value="RF_INFO"/>
- <set field="updateRequestMap.statusId" value="CRQ_COMPLETED"/>
- <set field="updateRequestMap.priority" value="2L" type="Long"/>
- <set field="updateRequestMap.fromPartyId" value="admin"/>
- <entity-one entity-name="UserLogin" value-name="updateRequestMap.userLogin">
- <field-map field-name="userLoginId" value="system"/>
- </entity-one>
- <call-service service-name="updateCustRequest" in-map-name="updateRequestMap"/>
- <check-errors/>
- </simple-method>
</simple-methods>
Modified: ofbiz/trunk/applications/workeffort/testdef/workefforttests.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/testdef/workefforttests.xml?rev=667795&r1=667794&r2=667795&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/testdef/workefforttests.xml (original)
+++ ofbiz/trunk/applications/workeffort/testdef/workefforttests.xml Sat Jun 14 05:48:46 2008
@@ -26,22 +26,4 @@
<test-case case-name="testCreateProjectService Direct Simple Method">
<simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testCreateProjectService"/>
</test-case>
- <test-case case-name="testUpdateContactInfo Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testUpdateContactInfo"/>
- </test-case>
- <test-case case-name="testUpdateTeleCom Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testUpdateTeleCom"/>
- </test-case>
- <test-case case-name="testUpdatePostalAddr Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testUpdatePostalAddr"/>
- </test-case>
- <test-case case-name="testAddRole Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testAddRole"/>
- </test-case>
- <test-case case-name="testCreateNewCommEvent Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testCreateNewCommEvent"/>
- </test-case>
- <test-case case-name="testCreateNewRequest Direct Simple Method">
- <simple-method-test location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" name="testCreateNewRequest"/>
- </test-case>
</test-suite>
\ No newline at end of file