use of com.hazelcast.spi.impl.proxyservice.InternalProxyService in project hazelcast by hazelcast.
the class ClientMapPartitionLostListenerTest method assertProxyExistsEventually.
private void assertProxyExistsEventually(HazelcastInstance instance, final String proxyName) {
final InternalProxyService proxyService = getNodeEngineImpl(instance).getProxyService();
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
Collection<DistributedObject> allDistributedObjects = proxyService.getAllDistributedObjects();
for (DistributedObject distributedObject : allDistributedObjects) {
if (distributedObject.getName().equals(proxyName)) {
return;
}
}
fail("There is no proxy with name " + proxyName + " created (yet)");
}
});
}
Aggregations