use of com.synopsys.integration.alert.common.descriptor.validator.DistributionConfigurationValidator in project hub-alert by blackducksoftware.
the class ChannelDescriptorTest method getterTest.
@Test
public void getterTest() {
String name = "channel";
ChannelKey channelKey = new ChannelKey(name, name) {
};
ChannelDescriptor channelDescriptor = new ChannelDescriptor(channelKey, Set.of(ConfigContextEnum.DISTRIBUTION)) {
@Override
public Optional<GlobalConfigurationFieldModelValidator> getGlobalValidator() {
return Optional.empty();
}
@Override
public Optional<DistributionConfigurationValidator> getDistributionValidator() {
return Optional.empty();
}
};
assertEquals(name, channelDescriptor.getDescriptorKey().getUniversalKey());
}
Aggregations