MetricAdapterTest#testToMetricResponse,QueryResponseTest#testOneResponse, and SearchLookupResponse#testResponse1 rely on writeValueAsString() writing the member variables in a certain order. This is unspecified without using the @JsonPropertyOrder annotation. QueryResponse and SearchLookupResponse also contain a Map member variable to be printed. HashMaps have no defined ordering so this was changed to a LinkedHashMap.
Lastly, the Authorizations.toString() function used in AuthCacheTest#getAuths does not have a guaranteed ordering
MetricAdapterTest#testToMetricResponse
,QueryResponseTest#testOneResponse
, andSearchLookupResponse#testResponse1
rely onwriteValueAsString()
writing the member variables in a certain order. This is unspecified without using the@JsonPropertyOrder
annotation.QueryResponse
andSearchLookupResponse
also contain a Map member variable to be printed. HashMaps have no defined ordering so this was changed to a LinkedHashMap.Lastly, the
Authorizations.toString()
function used inAuthCacheTest#getAuths
does not have a guaranteed ordering