use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientCacheThroughHazelcastInstanceTest method createInstance.
@Override
protected HazelcastInstance createInstance() {
if (instanceFactory != null) {
throw new IllegalStateException("There should not be multiple creation of TestHazelcastFactory!");
}
instanceFactory = new TestHazelcastFactory();
ownerInstance = instanceFactory.newHazelcastInstance();
return instanceFactory.newHazelcastClient();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientCachePartitionIteratorTest method setup.
@Before
public void setup() {
factory = new TestHazelcastFactory();
server = factory.newHazelcastInstance();
HazelcastInstance client = factory.newHazelcastClient();
cachingProvider = HazelcastClientCachingProvider.createCachingProvider(client);
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientCacheReadWriteThroughTest method getInstance.
protected HazelcastInstance getInstance() {
// Create server instance
HazelcastInstance serverInstance = factory.newHazelcastInstance(createConfig());
serverCachingProvider = HazelcastServerCachingProvider.createCachingProvider(serverInstance);
// Create client instance
return ((TestHazelcastFactory) factory).newHazelcastClient();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class DummyClientCachePartitionIteratorTest method setup.
@Before
public void setup() {
factory = new TestHazelcastFactory();
Config config = getConfig();
server = factory.newHazelcastInstance(config);
factory.newHazelcastInstance(config);
HazelcastInstance client = factory.newHazelcastClient(getClientConfig(server));
cachingProvider = HazelcastClientCachingProvider.createCachingProvider(client);
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class CallbackAwareClientDelegatingFutureTest method setup.
@Before
public void setup() {
factory = new TestHazelcastFactory();
factory.newHazelcastInstance();
client = ((HazelcastClientProxy) factory.newHazelcastClient()).client;
}
Aggregations