* @param properties
* @throws InvalidConfigurationException
*/
public static void validate(ApiMetadata apiMetadata, Dictionary properties) throws InvalidConfigurationException {
if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.CLIENT_NAME))) {
throw new InvalidConfigurationException("No client name specified.");
}
if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.VALIDATOR_NAME))) {
throw new InvalidConfigurationException("No validator name specified.");
}
if (Strings.isNullOrEmpty((String) properties.get(ChefConstants.ENDPOINT)) && !apiMetadata.getDefaultEndpoint().isPresent()) {
throw new InvalidConfigurationException("No endpoint specified specified.");
}
}