Skip to content

Commit

Permalink
test: modify assertion for increasing readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
anyulled authored and dsyer committed May 16, 2024
1 parent ca57854 commit c5b3b35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void shouldNotValidateWhenFirstNameEmpty() {

assertThat(constraintViolations).hasSize(1);
ConstraintViolation<Person> violation = constraintViolations.iterator().next();
assertThat(violation.getPropertyPath().hasToString("firstName");
assertThat(violation.getPropertyPath()).hasToString("firstName");
assertThat(violation.getMessage()).isEqualTo("must not be blank");
}

Expand Down

0 comments on commit c5b3b35

Please sign in to comment.