Search in sources :

Example 1 with MCTriggerForceStartCodec

use of com.hazelcast.client.impl.protocol.codec.MCTriggerForceStartCodec in project hazelcast by hazelcast.

the class MCMessageTasksTest method testHotRestartTriggerForceStartMessageTask.

@Test
public void testHotRestartTriggerForceStartMessageTask() throws Exception {
    ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCTriggerForceStartCodec.encodeRequest(), null);
    ClientDelegatingFuture<Boolean> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCTriggerForceStartCodec::decodeResponse);
    assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS));
}
Also used : ClientDelegatingFuture(com.hazelcast.client.impl.ClientDelegatingFuture) MCTriggerForceStartCodec(com.hazelcast.client.impl.protocol.codec.MCTriggerForceStartCodec) ClientInvocation(com.hazelcast.client.impl.spi.impl.ClientInvocation) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

ClientDelegatingFuture (com.hazelcast.client.impl.ClientDelegatingFuture)1 MCTriggerForceStartCodec (com.hazelcast.client.impl.protocol.codec.MCTriggerForceStartCodec)1 ClientInvocation (com.hazelcast.client.impl.spi.impl.ClientInvocation)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1