@Test public void nullConfigIsValid() { assertThat(validator.isValid(null, mock(ConstraintValidatorContext.class))).isTrue(); }
@Override public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) { return keyConfiguration==null || !(keyConfiguration.getPasswordFile()!=null && keyConfiguration.getPasswords()!=null); }
KeyConfigurationValidator implements ConstraintValidator<ValidKeyConfiguration, KeyConfiguration> { @Override public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) { return keyConfiguration==null || !(keyConfiguration.getPasswordFile()!=null && keyConfiguration.getPasswords()!=null); } }
KeyConfigurationValidator implements ConstraintValidator<ValidKeyConfiguration, KeyConfiguration> { @Override public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) { return keyConfiguration==null || !(keyConfiguration.getPasswordFile()!=null && keyConfiguration.getPasswords()!=null); }  }
KeyConfigurationValidator implements ConstraintValidator<ValidKeyConfiguration, KeyConfiguration> { @Override public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) { return keyConfiguration==null || !(keyConfiguration.getPasswordFile()!=null && keyConfiguration.getPasswords()!=null); }  @Override boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc); }
KeyConfigurationValidator implements ConstraintValidator<ValidKeyConfiguration, KeyConfiguration> { @Override public boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc) { return keyConfiguration==null || !(keyConfiguration.getPasswordFile()!=null && keyConfiguration.getPasswords()!=null); }  @Override boolean isValid(KeyConfiguration keyConfiguration, ConstraintValidatorContext cvc);  }