Closed LALAYANG closed 3 years ago
First of all, thank you for contributing this! Fix would be great.
Just onet thing: I do not want to add a new dependency for just one test. It'd be great to do the test using just Jackson (or simple String processing.
Oh actually I see: it is iterating over the hash set contents.
@LALAYANG I figured that an even simpler way is to ensure iteration order is set, which happens when using a List.
Thank you once again for identifying the issue!
mvn -pl guava edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=com.fasterxml.jackson.datatype.guava.FluentIterableTest
, *Here are the details of NonDex.com.fasterxml.jackson.datatype.guava.FluentIterableTest.testSerialization
com.fasterxml.jackson.datatype.guava.FluentIterableTest.testWrappedSerialization
MAPPER.writeValueAsString()
serializes Java objects as JSON output, but the order of objects being mapped into a string by ObjectMapper changes, resulting in a different serialized JSON string.org.skyscreamer.jsonassert
.