[ 
https://issues.apache.org/jira/browse/OLINGO-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185187#comment-14185187
 ] 

Michael Bolz commented on OLINGO-431:
-------------------------------------

Hi [~challenh],

for me this issue looks like the test rely on that the order of the values in a 
{{HashMap}} is always the same.
But to get such a behaviour a {{LinkedHashMap}} has to be used.
Do you think this should fixed in the client by changing the 
{{CommonURIBuilder.appendKeySegment(Map<String, Object> segmentValues)}} method 
(to something like {{appendKey(String keyName, Object keyValue)}}?
If not perhaps only the test can be fixed to not rely on a fixed order for 
{{HashMap}} values.

Kind regards,
Michael

> java client - build failure maybe becase of language/regional setting
> ---------------------------------------------------------------------
>
>                 Key: OLINGO-431
>                 URL: https://issues.apache.org/jira/browse/OLINGO-431
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.0.0-beta-02
>            Reporter: Challen
>            Assignee: Challen
>             Fix For: (Java) V4 4.0.0-beta-02
>
>
> Failed tests: 
>   URIBuilderTest.entity:64 
> expected:<http://host/service/OrderLine(OrderId=-10,ProductId=-10)/Quantity/$value>
>  but 
> was:<http://host/service/OrderLine(ProductId=-10,OrderId=-10)/Quantity/$value>
> Tests run: 152, Failures: 1, Errors: 0, Skipped: 2
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Olingo-OData ....................................... SUCCESS [ 15.068 
> s]
> [INFO] odata-lib .......................................... SUCCESS [  0.734 
> s]
> [INFO] odata-commons-api .................................. SUCCESS [  7.108 
> s]
> [INFO] odata-commons-core ................................. SUCCESS [ 11.091 
> s]
> [INFO] odata-client-api ................................... SUCCESS [  9.436 
> s]
> [INFO] odata-client-core .................................. FAILURE [ 18.142 
> s]
> [INFO] odata-server-api ................................... SKIPPED
> [INFO] odata-server-core .................................. SKIPPED
> [INFO] odata-server-tecsvc ................................ SKIPPED
> [INFO] odata-server-test .................................. SKIPPED
> [INFO] odata-ext .......................................... SKIPPED
> [INFO] odata-client-proxy ................................. SKIPPED
> [INFO] pojogen-maven-plugin ............................... SKIPPED
> [INFO] odata-client-android ............................... SKIPPED
> [INFO] odata-fit .......................................... SKIPPED
> [INFO] odata-dist ......................................... SKIPPED
> [INFO] Olingo-OData-Client-for-Android .................... SKIPPED
> [INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
> [INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
> [INFO] Olingo-OData-JavaDoc ............................... SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 01:02 min
> [INFO] Finished at: 2014-09-15T08:22:05-07:00
> [INFO] Final Memory: 71M/740M
> [INFO] 
> ------------------------------------------------------------------------



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to