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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user