@Test public void createInvalidWithTemplateString_tooManyPlaceholders_areIgnored() { String errorMessageTemplate = "An error message {} {} {}"; String onlyOne = "first"; ValidationResult validationResult = ValidationResults.createInvalid(errorMessageTemplate, onlyOne); assertThat(validationResult.isErroneous()).isTrue(); assertThat(validationResult.getErrorDescription()).isEqualTo("An error message first {} {}"); }
public static ValidationResult createInvalid(String errorDescription) { logger.warn(errorDescription); return new ValidationResultImpl(errorDescription); }
ValidationResults { public static ValidationResult createInvalid(String errorDescription) { logger.warn(errorDescription); return new ValidationResultImpl(errorDescription); } }
ValidationResults { public static ValidationResult createInvalid(String errorDescription) { logger.warn(errorDescription); return new ValidationResultImpl(errorDescription); } private  ValidationResults(); }
ValidationResults { public static ValidationResult createInvalid(String errorDescription) { logger.warn(errorDescription); return new ValidationResultImpl(errorDescription); } private  ValidationResults(); static ValidationResult createInvalid(String errorDescription); static ValidationResult createInvalid(String errorDescriptionTemplate, Object... arguments); static ValidationResult createValid(); }
ValidationResults { public static ValidationResult createInvalid(String errorDescription) { logger.warn(errorDescription); return new ValidationResultImpl(errorDescription); } private  ValidationResults(); static ValidationResult createInvalid(String errorDescription); static ValidationResult createInvalid(String errorDescriptionTemplate, Object... arguments); static ValidationResult createValid();  }