use of com.hazelcast.client.config.ClientClasspathXmlConfig in project hazelcast by hazelcast.
the class ClientDiscoverySpiTest method testMulticastDiscoveryEnabledNoLocalhost.
@Test(expected = IllegalStateException.class)
public void testMulticastDiscoveryEnabledNoLocalhost() {
Hazelcast.newHazelcastInstance();
ClientClasspathXmlConfig clientConfig = new ClientClasspathXmlConfig("hazelcast-client-dummy-multicast-discovery-test.xml");
HazelcastClient.newHazelcastClient(clientConfig);
}
use of com.hazelcast.client.config.ClientClasspathXmlConfig in project hazelcast by hazelcast.
the class ConfiguredBehaviourTestXmlConfig method testReconnectModeASYNCSingleMemberStartLateXmlConfig.
@Test
public void testReconnectModeASYNCSingleMemberStartLateXmlConfig() {
HazelcastInstance hazelcastInstance = hazelcastFactory.newHazelcastInstance();
ClientClasspathXmlConfig clientConfig = new ClientClasspathXmlConfig("hazelcast-client-connection-strategy-asyncReconnect.xml");
HazelcastInstance client = hazelcastFactory.newHazelcastClient(clientConfig);
assertTrue(client.getLifecycleService().isRunning());
ReconnectListener reconnectListener = new ReconnectListener();
client.getLifecycleService().addLifecycleListener(reconnectListener);
hazelcastInstance.shutdown();
hazelcastFactory.newHazelcastInstance();
assertOpenEventually(reconnectListener.reconnectedLatch);
client.getMap(randomMapName());
}
use of com.hazelcast.client.config.ClientClasspathXmlConfig in project hazelcast by hazelcast.
the class ConfiguredBehaviourTestXmlConfig method testAsyncStartTrueXmlConfig.
@Test
public void testAsyncStartTrueXmlConfig() {
ClientClasspathXmlConfig clientConfig = new ClientClasspathXmlConfig("hazelcast-client-connection-strategy-asyncStart-true.xml");
HazelcastInstance client = hazelcastFactory.newHazelcastClient(clientConfig);
assertTrue(client.getLifecycleService().isRunning());
hazelcastFactory.newHazelcastInstance();
assertOpenEventually(asyncStartFromXmlLatch);
client.getMap(randomMapName());
}
Aggregations