Run the test BehaviorTests.DefectTest.nullAndObjectValuesInMap with mvn -pl unirest edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=BehaviorTests.DefectTest#nullAndObjectValuesInMap
[ERROR] Failures:
[ERROR] DefectTest.nullAndObjectValuesInMap:61 expected: <foo&baz=qux> but was: <baz=qux&foo>
Why it fails:
In unirest/src/test/java/BehaviorTests/DefectTest.java : Map<String, Object> queryParams = new HashMap<>(); ,
HashMap makes no guarantee about the iteration order.
The test Failure:
BehaviorTests.DefectTest.nullAndObjectValuesInMap
withmvn -pl unirest edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=BehaviorTests.DefectTest#nullAndObjectValuesInMap
unirest/src/test/java/BehaviorTests/DefectTest.java
:Map<String, Object> queryParams = new HashMap<>();
, HashMap makes no guarantee about the iteration order.Fix it:
HashMap
toLinkedHashMap
.