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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user