use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testHotRestartInterruptBackupMessageTask.
@Test
public void testHotRestartInterruptBackupMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCInterruptHotRestartBackupCodec.encodeRequest(), null);
ClientDelegatingFuture<Void> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), clientMessage -> null);
future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS);
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testMatchMCConfigMessageTask.
@Test
public void testMatchMCConfigMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCMatchMCConfigCodec.encodeRequest(randomString()), null);
ClientDelegatingFuture<Boolean> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCMatchMCConfigCodec::decodeResponse);
assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS));
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testUpdateMapConfigMessageTask.
@Test
public void testUpdateMapConfigMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCUpdateMapConfigCodec.encodeRequest(randomString(), 100, 200, 0, false, 100, 0), null);
ClientDelegatingFuture<Void> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), clientMessage -> null);
future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS);
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testRunGCMessageTask.
@Test
public void testRunGCMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCRunGcCodec.encodeRequest(), null);
ClientDelegatingFuture<Void> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), clientMessage -> null);
future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS);
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testPollMCEventsMessageTask.
@Test
public void testPollMCEventsMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCPollMCEventsCodec.encodeRequest(), null);
ClientDelegatingFuture<List<MCEventDTO>> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCPollMCEventsCodec::decodeResponse);
assertTrue(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS).isEmpty());
}
Aggregations