@Test public void when_a_server_configuration_does_contain_optional_parameters_and_jobconfig_not_than_no_exception_is_thrown() { PDSJobConfiguration config = prepareValidConfig(); PDSProdutParameterDefinition optional= new PDSProdutParameterDefinition(); optional.setKey("the.optional.key"); setup1.getParameters().getOptional().add(optional); validatorToTest.assertPDSConfigurationValid(config); }
public void assertPDSConfigurationValid(PDSJobConfiguration configuration) { String message = createValidationErrorMessage(configuration); if (message == null) { return; } LOG.warn("pds job configuration not valid - message:{}", message); throw new PDSNotAcceptableException("Configuration invalid:" + message); }
PDSJobConfigurationValidator { public void assertPDSConfigurationValid(PDSJobConfiguration configuration) { String message = createValidationErrorMessage(configuration); if (message == null) { return; } LOG.warn("pds job configuration not valid - message:{}", message); throw new PDSNotAcceptableException("Configuration invalid:" + message); } }
PDSJobConfigurationValidator { public void assertPDSConfigurationValid(PDSJobConfiguration configuration) { String message = createValidationErrorMessage(configuration); if (message == null) { return; } LOG.warn("pds job configuration not valid - message:{}", message); throw new PDSNotAcceptableException("Configuration invalid:" + message); }  }
PDSJobConfigurationValidator { public void assertPDSConfigurationValid(PDSJobConfiguration configuration) { String message = createValidationErrorMessage(configuration); if (message == null) { return; } LOG.warn("pds job configuration not valid - message:{}", message); throw new PDSNotAcceptableException("Configuration invalid:" + message); }  void assertPDSConfigurationValid(PDSJobConfiguration configuration); }
PDSJobConfigurationValidator { public void assertPDSConfigurationValid(PDSJobConfiguration configuration) { String message = createValidationErrorMessage(configuration); if (message == null) { return; } LOG.warn("pds job configuration not valid - message:{}", message); throw new PDSNotAcceptableException("Configuration invalid:" + message); }  void assertPDSConfigurationValid(PDSJobConfiguration configuration);  }