From 7cbfad970de669c663712c5af321f572a4277dce Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Fri, 4 Feb 2022 13:51:47 +0100 Subject: [PATCH] Polishing. Removed Given/When/Then comments. They are of limited use, especially since it is debatable what belongs in which section. See #2176 Original pull request #2401 --- .../domain/support/QueryByExampleWithOptionalEmptyTests.java | 3 --- 1 file changed, 3 deletions(-) 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);