test: modify assertion for increasing readability.

This commit is contained in:
Anyul Rivas 2024-03-17 15:44:04 +01:00
parent c3800d3565
commit 7a2d1a8b02

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");
}