mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 22:59:38 +00:00
test: modify assertion for increasing readability.
This commit is contained in:
parent
ca5785465f
commit
c5b3b3597e
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().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