use of com.hazelcast.internal.management.request.ThreadDumpRequest in project hazelcast by hazelcast.
the class ThreadDumpRequestTest method testThreadDumpRequest_withDeadlocks.
@Test
public void testThreadDumpRequest_withDeadlocks() throws Exception {
ThreadDumpRequest request = new ThreadDumpRequest(true);
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertNotNull(request.readResponse(result));
}
use of com.hazelcast.internal.management.request.ThreadDumpRequest in project hazelcast by hazelcast.
the class ThreadDumpRequestTest method testThreadDumpRequest.
@Test
public void testThreadDumpRequest() throws Exception {
ThreadDumpRequest request = new ThreadDumpRequest(false);
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertNotNull(request.readResponse(result));
}
Aggregations