use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientMapRecordStateStressTest method setUp.
@Before
public void setUp() throws Exception {
factory = new TestHazelcastFactory();
stop.set(false);
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientQueryCacheIndexTest method setUp.
@Before
public void setUp() {
Config config = new Config();
config.setProperty(GroupProperty.PARTITION_COUNT.getName(), "1");
factory = new TestHazelcastFactory();
factory.newHazelcastInstance(config);
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ListSetMapReduceLiteMemberTest method before.
@Before
public void before() {
factory = new TestHazelcastFactory();
final HazelcastInstance lite = factory.newHazelcastInstance(new Config().setLiteMember(false));
final HazelcastInstance lite2 = factory.newHazelcastInstance(new Config().setLiteMember(false));
final HazelcastInstance instance1 = factory.newHazelcastInstance();
final HazelcastInstance instance2 = factory.newHazelcastInstance();
assertClusterSizeEventually(4, lite);
assertClusterSizeEventually(4, lite2);
assertClusterSizeEventually(4, instance1);
assertClusterSizeEventually(4, instance2);
client = factory.newHazelcastClient();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class MapReduceLiteMemberTest method before.
@Before
public void before() {
factory = new TestHazelcastFactory();
lite = factory.newHazelcastInstance(new Config().setLiteMember(true));
lite2 = factory.newHazelcastInstance(new Config().setLiteMember(true));
instance = factory.newHazelcastInstance();
instance2 = factory.newHazelcastInstance();
assertClusterSizeEventually(4, lite);
assertClusterSizeEventually(4, lite2);
assertClusterSizeEventually(4, instance);
assertClusterSizeEventually(4, instance2);
client = factory.newHazelcastClient();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class MapAggregationLiteMemberTest method before.
@Before
public void before() {
factory = new TestHazelcastFactory();
final HazelcastInstance lite = factory.newHazelcastInstance(new Config().setLiteMember(true));
final HazelcastInstance instance1 = factory.newHazelcastInstance();
final HazelcastInstance instance2 = factory.newHazelcastInstance();
assertClusterSizeEventually(3, lite);
assertClusterSizeEventually(3, instance1);
assertClusterSizeEventually(3, instance2);
client = factory.newHazelcastClient();
}
Aggregations