use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class SystemLogPluginConnectionTest method setUp.
@Before
public void setUp() {
Config config = new Config();
config.setProperty(LOG_PARTITIONS.getName(), "true");
hzFactory = new TestHazelcastFactory();
HazelcastInstance hz = hzFactory.newHazelcastInstance(config);
plugin = new SystemLogPlugin(getNodeEngineImpl(hz));
plugin.onStart();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientMapNearCacheLiteMemberTest method init.
@Before
public void init() {
mapName = randomMapName();
factory = new TestHazelcastFactory();
factory.newHazelcastInstance(NearCacheLiteMemberTest.createConfig(mapName, false));
client = factory.newHazelcastClient();
lite = factory.newHazelcastInstance(NearCacheLiteMemberTest.createConfig(mapName, true));
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientMapNearCacheStaleReadTest method setUp.
@Before
public void setUp() throws Exception {
TestHazelcastFactory factory = new TestHazelcastFactory();
valuePut = new AtomicInteger(0);
stop = new AtomicBoolean(false);
failed = new AtomicBoolean(false);
assertionViolationCount = new AtomicInteger(0);
Config config = new Config();
config.setProperty(GroupProperty.MAP_INVALIDATION_MESSAGE_BATCH_FREQUENCY_SECONDS.getName(), "2");
member = factory.newHazelcastInstance(config);
ClientConfig clientConfig = getClientConfig(MAP_NAME);
clientConfig.setProperty("hazelcast.invalidation.max.tolerated.miss.count", "0");
client = factory.newHazelcastClient(clientConfig);
map = client.getMap(MAP_NAME);
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientWriteBehindFlushTest method setUp.
@Before
public void setUp() throws Exception {
MapStoreConfig mapStoreConfig = new MapStoreConfig();
MapStoreWithCounter mapStore = new MapStoreWithCounter<Integer, String>();
mapStoreConfig.setImplementation(mapStore).setWriteDelaySeconds(3000);
Config config = getConfig();
config.getMapConfig(MAP_NAME).setMapStoreConfig(mapStoreConfig);
TestHazelcastFactory hazelcastFactory = new TestHazelcastFactory();
member1 = hazelcastFactory.newHazelcastInstance(config);
member2 = hazelcastFactory.newHazelcastInstance(config);
member3 = hazelcastFactory.newHazelcastInstance(config);
client = hazelcastFactory.newHazelcastClient();
}
use of com.hazelcast.client.test.TestHazelcastFactory in project hazelcast by hazelcast.
the class ClientMapPartitionIteratorTest method setup.
@Before
public void setup() {
Config config = getConfig();
factory = new TestHazelcastFactory();
server = factory.newHazelcastInstance(config);
client = factory.newHazelcastClient();
}
Aggregations