Search in sources :

Example 1 with ThreadDumpRequest

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));
}
Also used : JsonObject(com.eclipsesource.json.JsonObject) ThreadDumpRequest(com.hazelcast.internal.management.request.ThreadDumpRequest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Example 2 with ThreadDumpRequest

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));
}
Also used : JsonObject(com.eclipsesource.json.JsonObject) ThreadDumpRequest(com.hazelcast.internal.management.request.ThreadDumpRequest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Aggregations

JsonObject (com.eclipsesource.json.JsonObject)2 ThreadDumpRequest (com.hazelcast.internal.management.request.ThreadDumpRequest)2 ParallelTest (com.hazelcast.test.annotation.ParallelTest)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 Test (org.junit.Test)2