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
This commit is contained in:
Jens Schauder
2022-02-04 13:51:47 +01:00
parent a7fd176643
commit 21e042460d

View File

@@ -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<UserWithOptionalField> example = Example.of(probe);
// then
List<UserWithOptionalField> results = repository.findAll(example);
assertThat(results).hasSize(1);