Harmonize content.
Refactor content to a natural flow, remove duplications, extract partials. See #1597
This commit is contained in:
@@ -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")) //
|
||||
|
||||
Reference in New Issue
Block a user