use of com.hazelcast.internal.cluster.impl.ConfigCheck in project hazelcast by hazelcast.
the class ConfigCheckTest method whenJoinerTypeDifferent_thenConfigMismatchException.
@Test
public void whenJoinerTypeDifferent_thenConfigMismatchException() {
Config config1 = new Config();
Config config2 = new Config();
ConfigCheck configCheck1 = new ConfigCheck(config1, "joiner1");
ConfigCheck configCheck2 = new ConfigCheck(config2, "joiner2");
assertIsCompatibleThrowsConfigMismatchException(configCheck1, configCheck2);
}
use of com.hazelcast.internal.cluster.impl.ConfigCheck in project hazelcast by hazelcast.
the class ConfigCheckTest method whenPartitionGroupGroupTypeMismatch_thenConfigurationMismatchException.
@Test
public void whenPartitionGroupGroupTypeMismatch_thenConfigurationMismatchException() {
Config config1 = new Config();
config1.getPartitionGroupConfig().setEnabled(true);
config1.getPartitionGroupConfig().setGroupType(PartitionGroupConfig.MemberGroupType.CUSTOM);
Config config2 = new Config();
config2.getPartitionGroupConfig().setEnabled(true);
config2.getPartitionGroupConfig().setGroupType(PartitionGroupConfig.MemberGroupType.PER_MEMBER);
ConfigCheck configCheck1 = new ConfigCheck(config1, "joiner");
ConfigCheck configCheck2 = new ConfigCheck(config2, "joiner");
assertIsCompatibleThrowsConfigMismatchException(configCheck1, configCheck2);
}
Aggregations