use of com.hazelcast.config.SetConfig in project hazelcast by hazelcast.
the class DynamicConfigTest method testSetConfig_whenItemListenersConfigured.
@Test
public void testSetConfig_whenItemListenersConfigured() {
SetConfig setConfig = getSetConfig(name);
setConfig.addItemListenerConfig(getItemListenerConfig_byImplementation());
setConfig.addItemListenerConfig(getItemListenerConfig_byClassName());
driver.getConfig().addSetConfig(setConfig);
assertConfigurationsEqualOnAllMembers(setConfig);
}
use of com.hazelcast.config.SetConfig in project hazelcast by hazelcast.
the class DynamicConfigTest method testSetConfig.
@Test
public void testSetConfig() {
SetConfig setConfig = getSetConfig(name);
driver.getConfig().addSetConfig(setConfig);
assertConfigurationsEqualOnAllMembers(setConfig);
}
use of com.hazelcast.config.SetConfig in project hazelcast by hazelcast.
the class ConfigSearchTest method testSetConfig_Dynamic.
@Test
public void testSetConfig_Dynamic() {
TestCase<SetConfig> testCase = new TestCase<SetConfig>(new SetConfig().setName(STATIC_NAME), new SetConfig().setName(DYNAMIC_NAME), true) {
@Override
void addStaticConfig(Config config) {
config.addSetConfig(this.staticConfig);
}
@Override
void addDynamicConfig(HazelcastInstance hazelcastInstance) {
hazelcastInstance.getConfig().addSetConfig(this.dynamicConfig);
}
@Override
void asserts() {
SetConfig dataConfig = hazelcastInstance.getConfig().findSetConfig(DYNAMIC_NAME);
assertThat(dataConfig.getName(), equalTo(DYNAMIC_NAME));
}
};
testTemplate(testCase);
}
use of com.hazelcast.config.SetConfig in project hazelcast by hazelcast.
the class MergePolicyValidatorSetIntegrationTest method addConfig.
@Override
void addConfig(Config config, String name, MergePolicyConfig mergePolicyConfig) {
SetConfig setConfig = new SetConfig(name).setMergePolicyConfig(mergePolicyConfig);
config.addSetConfig(setConfig);
}
use of com.hazelcast.config.SetConfig in project hazelcast by hazelcast.
the class AbstractSplitBrainProtectionTest method newSetConfig.
protected static SetConfig newSetConfig(SplitBrainProtectionOn splitBrainProtectionOn, String splitBrainProtectionName) {
SetConfig config = new SetConfig(SET_NAME + splitBrainProtectionOn.name());
config.setSplitBrainProtectionName(splitBrainProtectionName);
return config;
}
Aggregations