use of com.hazelcast.internal.management.request.GetClusterStateRequest in project hazelcast by hazelcast.
the class GetClusterStateRequestTest method testGetClusterState.
@Test
public void testGetClusterState() throws Exception {
GetClusterStateRequest request = new GetClusterStateRequest();
ClusterState clusterState = cluster.getClusterState();
JsonObject jsonObject = new JsonObject();
request.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertEquals(clusterState.name(), request.readResponse(result));
}
Aggregations