@Test public void createInvalid() { String errorMessage = "An error message"; ValidationResult validationResult = ValidationResults.createInvalid(errorMessage); assertThat(validationResult.isErroneous()).isTrue(); assertThat(validationResult.getErrorDescription()).isEqualTo(errorMessage); }
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();  }