diff --git a/src/test/java/org/springframework/data/jpa/repository/query/PartTreeJpaQueryIntegrationTests.java b/src/test/java/org/springframework/data/jpa/repository/query/PartTreeJpaQueryIntegrationTests.java index 69afb6a59..d35d09be5 100644 --- a/src/test/java/org/springframework/data/jpa/repository/query/PartTreeJpaQueryIntegrationTests.java +++ b/src/test/java/org/springframework/data/jpa/repository/query/PartTreeJpaQueryIntegrationTests.java @@ -222,7 +222,7 @@ public class PartTreeJpaQueryIntegrationTests { assertThatExceptionOfType(IllegalArgumentException.class) // .isThrownBy(() -> new PartTreeJpaQuery(method, entityManager)) // .withMessageContaining("findByNoSuchProperty") // the method being analyzed - .withMessageContaining(" noSuchProperty ") // the property we are looking for + .withMessageContaining("'noSuchProperty'") // the property we are looking for .withMessageContaining("UserRepository"); // the repository }