From c5b3b3597ee4954a15c57767b4de432d160136e6 Mon Sep 17 00:00:00 2001 From: Anyul Rivas Date: Sun, 17 Mar 2024 15:44:04 +0100 Subject: [PATCH] test: modify assertion for increasing readability. --- .../springframework/samples/petclinic/model/ValidatorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java b/src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java index bf0df7c88..c75328522 100644 --- a/src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java +++ b/src/test/java/org/springframework/samples/petclinic/model/ValidatorTests.java @@ -53,7 +53,7 @@ class ValidatorTests { assertThat(constraintViolations).hasSize(1); ConstraintViolation violation = constraintViolations.iterator().next(); - assertThat(violation.getPropertyPath().hasToString("firstName"); + assertThat(violation.getPropertyPath()).hasToString("firstName"); assertThat(violation.getMessage()).isEqualTo("must not be blank"); }