use of com.hazelcast.client.impl.protocol.codec.MCGetSystemPropertiesCodec in project hazelcast by hazelcast.
the class MCTrustedInterfacesTest method testGetSystemPropertiesMessageTask_passing.
@Test
public void testGetSystemPropertiesMessageTask_passing() throws Exception {
HazelcastInstance client = factory.newHazelcastClient(new ClientConfig(), "222.222.222.222");
HazelcastClientInstanceImpl clientImpl = ((HazelcastClientProxy) client).client;
ClientInvocation invocation = new ClientInvocation(clientImpl, MCGetSystemPropertiesCodec.encodeRequest(), null);
ClientDelegatingFuture<List<Map.Entry<String, String>>> future = new ClientDelegatingFuture<>(invocation.invoke(), clientImpl.getSerializationService(), MCGetSystemPropertiesCodec::decodeResponse);
assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS).isEmpty());
}
use of com.hazelcast.client.impl.protocol.codec.MCGetSystemPropertiesCodec in project hazelcast by hazelcast.
the class MCMessageTasksTest method testGetSystemPropertiesMessageTask.
@Test
public void testGetSystemPropertiesMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCGetSystemPropertiesCodec.encodeRequest(), null);
ClientDelegatingFuture<List<Entry<String, String>>> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCGetSystemPropertiesCodec::decodeResponse);
assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS).isEmpty());
}
Aggregations