The order of the nodes is asserted by the unit tests -- make sure this
is predictable across JDK versions.
Change-Id: I804024fe66530aa380dbd48907268fc12a4d3085
Signed-off-by: Robert Varga <rovarga@cisco.com>
import com.fasterxml.jackson.databind.SerializationFeature;
import java.io.InputStream;
+import java.util.Collections;
import java.util.List;
import javax.ws.rs.Consumes;
for (Node node : nodes) {
nodeIds.add(node.getId().getValue());
}
+ Collections.sort(nodeIds);
String response = objectMapper.writeValueAsString(nodeIds);
return Response.status(Response.Status.OK)