FanYuliang opened a new pull request #500:
URL: https://github.com/apache/struts/pull/500


   Hi,
   
   By running the following command:
   `mvn -pl plugins/rest/ edu.illinois:nondex-maven-plugin:1.1.2:nondex 
-Dtest=org.apache.struts2.rest.handler.JacksonXmlHandlerTest `,
   
   `testObjectToXml` method will fail sometimes. This is because `fromObject()` 
method of `JacksonXmlHandler` uses 
`com.fasterxml.jackson.dataformat.xml.XmlMapper`, whose marshal strategy that 
serializes the object is non-deterministic. Thus, the output of `toString()` 
method of the serialized xml object is non-deterministic. I fixed the bug by 
checking the output contains all components of the xml object and the expected 
length.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to