test: modify assertion for increasing readability.

This commit is contained in:
Anyul Rivas 2024-03-17 15:44:04 +01:00 committed by Dave Syer
parent ca5785465f
commit c5b3b3597e

View file

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