Update src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java

Co-authored-by: zral <73640367+zyberzebra@users.noreply.github.com>
This commit is contained in:
Anyul Rivas 2024-03-17 15:41:00 +01:00 committed by GitHub
parent 3d31cebb2a
commit 255e7fdaa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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