Thanks Scott - Interesting change.

BTW, I wasn't getting this error while running test case on Derby - and so
did this commit.

Vikas


On Sat, Jun 14, 2008 at 3:35 AM, <[EMAIL PROTECTED]> wrote:

> Author: lektran
> Date: Fri Jun 13 15:05:56 2008
> New Revision: 667667
>
> URL: http://svn.apache.org/viewvc?rev=667667&view=rev
> Log:
> Fix a problem that was causing the one of the party tests to fail.  The
> call-service operation adds the fields locale and userLogin to the in-map
> which was causing the find-by-primary-key operation to throw an error.
>
> Modified:
>
>  
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.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=667667&r1=667666&r2=667667&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
> Fri Jun 13 15:05:56 2008
> @@ -33,14 +33,14 @@
>         <!-- Post condition:
>              1. Selected party and information should be displayed in
> search result
>         -->
> -        <set field="serviceCtx.partyId" value="DemoCustomer"/>
> -        <set field="serviceCtx.roleTypeId" value="CUSTOMER"/>
> -
> +        <set field="searchParams.partyId" value="DemoCustomer"/>
> +        <set field="searchParams.roleTypeId" value="CUSTOMER"/>
> +        <map-to-map map-name="searchParams" to-map-name="serviceCtx"/>
>         <call-service service-name="findParty" in-map-name="serviceCtx">
>             <results-to-map map-name="partyList"/>
>         </call-service>
>
> -        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> map-name="serviceCtx" value-name="partyRoleDetailAndPartyDetail"/>
> +        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> map-name="searchParams" value-name="partyRoleDetailAndPartyDetail"/>
>         <if-not-empty field-name="partyRoleDetailAndPartyDetail">
>             <assert><not><if-empty field-name="partyList"/></not></assert>
>         <else>
>
>
>

Reply via email to