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 Dave Syer
parent 57eb7443a6
commit d604a01984

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