@Test public void createInvalidWithTemplateString() { String errorMessageTemplate = "An error message {} {} {}"; String[] args = { "first", "second", "third" }; ValidationResult validationResult = ValidationResults.createInvalid(errorMessageTemplate, args[0], args[1], args[2]); assertThat(validationResult.isErroneous()).isTrue(); assertThat(validationResult.getErrorDescription()).isEqualTo("An error message first second third"); }
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();  }