You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2016/09/07 21:17:13 UTC
svn commit: r1759706 -
/ofbiz/trunk/applications/party/minilang/test/PartyTests.xml
Author: nmalin
Date: Wed Sep 7 21:17:13 2016
New Revision: 1759706
URL: http://svn.apache.org/viewvc?rev=1759706&view=rev
Log:
add new test testCreatePartyGroup on party component, thanks to Pawan Verma for this adding by issue OFBIZ-8144
Modified:
ofbiz/trunk/applications/party/minilang/test/PartyTests.xml
Modified: ofbiz/trunk/applications/party/minilang/test/PartyTests.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/test/PartyTests.xml?rev=1759706&r1=1759705&r2=1759706&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/minilang/test/PartyTests.xml (original)
+++ ofbiz/trunk/applications/party/minilang/test/PartyTests.xml Wed Sep 7 21:17:13 2016
@@ -370,4 +370,25 @@ under the License.
</assert>
<check-errors/>
</simple-method>
+
+ <simple-method method-name="testCreatePartyGroup" short-description="Test the service to create party group" login-required="false">
+ <set field="serviceCtx.partyId" value="DemoGroup1"/>
+ <set field="serviceCtx.groupName" value="Demo Group"/>
+ <set field="serviceCtx.partyTypeId" value="PARTY_GROUP"/>
+ <set field="serviceCtx.statusId" value="PARTY_ENABLED"/>
+ <entity-one entity-name="UserLogin" value-field="userLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <set field="serviceCtx.userLogin" from-field="userLogin"/>
+ <call-service service-name="createPartyGroup" in-map-name="serviceCtx">
+ <result-to-field result-name="partyId"/>
+ </call-service>
+ <entity-one entity-name="PartyGroup" value-field="partyGroup"/>
+ <assert>
+ <not><if-empty field="partyGroup"/></not>
+ <if-compare field="partyGroup.partyId" operator="equals" value="DemoGroup1"/>
+ <if-compare field="partyGroup.groupName" operator="equals" value="Demo Group"/>
+ </assert>
+ <check-errors/>
+ </simple-method>
</simple-methods>