use of com.hazelcast.internal.management.request.ClearWanQueuesRequest in project hazelcast by hazelcast.
the class ClearWanQueuesTest method testClearWanQueue.
@Test
public void testClearWanQueue() throws Exception {
ClearWanQueuesRequest clearWanQueuesRequest = new ClearWanQueuesRequest("schema", "publisher");
JsonObject jsonObject = new JsonObject();
clearWanQueuesRequest.writeResponse(managementCenterService, jsonObject);
JsonObject result = (JsonObject) jsonObject.get("result");
assertNotEquals(ChangeWanStateRequest.SUCCESS, clearWanQueuesRequest.readResponse(result));
}
use of com.hazelcast.internal.management.request.ClearWanQueuesRequest in project hazelcast by hazelcast.
the class ClearWanQueuesTest method testSerialization.
@Test
public void testSerialization() {
ClearWanQueuesRequest clearWanQueuesRequest1 = new ClearWanQueuesRequest("schema", "publisher");
JsonObject jsonObject = clearWanQueuesRequest1.toJson();
ClearWanQueuesRequest clearWanQueuesRequest2 = new ClearWanQueuesRequest();
clearWanQueuesRequest2.fromJson(jsonObject);
assertEquals(clearWanQueuesRequest1.getPublisherName(), clearWanQueuesRequest2.getPublisherName());
assertEquals(clearWanQueuesRequest1.getSchemeName(), clearWanQueuesRequest2.getSchemeName());
}
Aggregations