use of com.hazelcast.config.ListenerConfig in project hazelcast by hazelcast.
the class XmlClientConfigBuilderTest method testLeftovers.
@Test
public void testLeftovers() {
assertEquals(40, clientConfig.getExecutorPoolSize());
assertEquals("com.hazelcast.security.UsernamePasswordCredentials", clientConfig.getSecurityConfig().getCredentialsClassname());
assertEquals(40, clientConfig.getExecutorPoolSize());
assertEquals("com.hazelcast.client.util.RandomLB", clientConfig.getLoadBalancer().getClass().getName());
final List<ListenerConfig> listenerConfigs = clientConfig.getListenerConfigs();
assertEquals(3, listenerConfigs.size());
assertContains(listenerConfigs, new ListenerConfig("com.hazelcast.examples.MembershipListener"));
assertContains(listenerConfigs, new ListenerConfig("com.hazelcast.examples.InstanceListener"));
assertContains(listenerConfigs, new ListenerConfig("com.hazelcast.examples.MigrationListener"));
}
Aggregations