Skip to content

Commit 7cbfad9

Browse files
schauderAntonMolganov
authored andcommitted
Polishing.
Removed Given/When/Then comments. They are of limited use, especially since it is debatable what belongs in which section. See spring-projects#2176 Original pull request spring-projects#2401
1 parent ea5b214 commit 7cbfad9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/test/java/org/springframework/data/jpa/domain/support/QueryByExampleWithOptionalEmptyTests.java

-3
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,14 @@ public class QueryByExampleWithOptionalEmptyTests {
4848
@Test
4949
void queryByExampleTreatsEmptyOptionalsLikeNulls() {
5050

51-
// given
5251
UserWithOptionalField user = new UserWithOptionalField();
5352
user.setName("Greg");
5453
repository.saveAndFlush(user);
5554

56-
// when
5755
UserWithOptionalField probe = new UserWithOptionalField();
5856
probe.setName("Greg");
5957
Example<UserWithOptionalField> example = Example.of(probe);
6058

61-
// then
6259
List<UserWithOptionalField> results = repository.findAll(example);
6360

6461
assertThat(results).hasSize(1);

0 commit comments

Comments
 (0)