Change validation annotations and whitespace handling

This commit is contained in:
evga7 2023-08-10 02:52:46 +09:00 committed by Dave Syer
parent 0a529015bc
commit 4926e29270
6 changed files with 13 additions and 13 deletions

View file

@ -54,7 +54,7 @@ class ValidatorTests {
assertThat(constraintViolations).hasSize(1);
ConstraintViolation<Person> violation = constraintViolations.iterator().next();
assertThat(violation.getPropertyPath().toString()).isEqualTo("firstName");
assertThat(violation.getMessage()).isEqualTo("must not be empty");
assertThat(violation.getMessage()).isEqualTo("must not be blank");
}
}