Harmonize content.

Refactor content to a natural flow, remove duplications, extract partials.

See #1597
This commit is contained in:
Mark Paluch
2023-08-29 09:01:15 +02:00
parent 4202b090ed
commit 99a8b01809
30 changed files with 778 additions and 670 deletions

View File

@@ -55,12 +55,12 @@ public class QueryByExampleTests {
Example<Employee> example = Example.of(employee); // <2>
Flux<Employee> employees = repository.findAll(example); // <3>
repository.findAll(example); // <3>
// do whatever with the flux
// do whatever with the result
// end::example[]
employees //
repository.findAll(example) //
.as(StepVerifier::create) //
.expectNext(new Employee(1, "Frodo", "ring bearer")) //
.verifyComplete();
@@ -87,12 +87,12 @@ public class QueryByExampleTests {
.withIgnorePaths("role"); // <4>
Example<Employee> example = Example.of(employee, matcher); // <5>
Flux<Employee> employees = repository.findAll(example);
repository.findAll(example);
// do whatever with the flux
// do whatever with the result
// end::example-2[]
employees //
repository.findAll(example) //
.as(StepVerifier::create) //
.expectNext(new Employee(1, "Frodo Baggins", "ring bearer")) //
.expectNext(new Employee(1, "Bilbo Baggins", "burglar")) //