Search in sources :

Example 6 with JsonNode

use of io.mantisrx.shaded.com.fasterxml.jackson.databind.JsonNode in project mantis by Netflix.

the class JobClustersRouteTest method compareClustersPayload.

private void compareClustersPayload(String clusterListResponse) {
    try {
        ObjectMapper mapper = new ObjectMapper();
        JsonNode responseObj = mapper.readTree(clusterListResponse);
        assert (responseObj.get("list") != null);
        assert (responseObj.get("prev") != null);
        assert (responseObj.get("next") != null);
        compareClusterInstancePayload(responseObj.get("list").get(0).toString());
    } catch (IOException ex) {
        assert ex == null;
    }
}
Also used : JsonNode(io.mantisrx.shaded.com.fasterxml.jackson.databind.JsonNode) IOException(java.io.IOException) ObjectMapper(io.mantisrx.shaded.com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

JsonNode (io.mantisrx.shaded.com.fasterxml.jackson.databind.JsonNode)6 ObjectMapper (io.mantisrx.shaded.com.fasterxml.jackson.databind.ObjectMapper)5 IOException (java.io.IOException)5 OffsetAndMetadata (org.apache.kafka.clients.consumer.OffsetAndMetadata)1