diff --git a/src/test/java/org/springframework/data/jpa/domain/support/QueryByExampleWithOptionalEmptyTests.java b/src/test/java/org/springframework/data/jpa/domain/support/QueryByExampleWithOptionalEmptyTests.java index 59d6080227..23bc7a115a 100644 --- a/src/test/java/org/springframework/data/jpa/domain/support/QueryByExampleWithOptionalEmptyTests.java +++ b/src/test/java/org/springframework/data/jpa/domain/support/QueryByExampleWithOptionalEmptyTests.java @@ -48,17 +48,14 @@ public class QueryByExampleWithOptionalEmptyTests { @Test void queryByExampleTreatsEmptyOptionalsLikeNulls() { - // given UserWithOptionalField user = new UserWithOptionalField(); user.setName("Greg"); repository.saveAndFlush(user); - // when UserWithOptionalField probe = new UserWithOptionalField(); probe.setName("Greg"); Example example = Example.of(probe); - // then List results = repository.findAll(example); assertThat(results).hasSize(1);