mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-17 09:29:37 +00:00
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:
parent
57eb7443a6
commit
d604a01984
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class ValidatorTests {
|
||||||
|
|
||||||
assertThat(constraintViolations).hasSize(1);
|
assertThat(constraintViolations).hasSize(1);
|
||||||
ConstraintViolation<Person> violation = constraintViolations.iterator().next();
|
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");
|
assertThat(violation.getMessage()).isEqualTo("must not be blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue