use of com.hazelcast.client.impl.protocol.codec.MCPollMCEventsCodec 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