mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-24 03:59:38 +00:00
test: modify assertion for increasing readability.
This commit is contained in:
parent
dea3432a6d
commit
57eb7443a6
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()).isEqualTo("firstName");
|
assertThat(violation.getPropertyPath().toString()).hasToString("firstName");
|
||||||
assertThat(violation.getMessage()).isEqualTo("must not be blank");
|
assertThat(violation.getMessage()).isEqualTo("must not be blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue