@Test public void inject() { this.webTestClient.get().uri("/complex/inject").exchange().expectStatus().isOk().expectBody(String.class) .value((body) -> assertEquals(body, "Inject Dependency")); }
@GetMapping("/inject") public Mono<String> inject() { return Mono.just("Inject " + this.dependency.getMessage()); }
FluxController { @GetMapping("/inject") public Mono<String> inject() { return Mono.just("Inject " + this.dependency.getMessage()); } }
FluxController { @GetMapping("/inject") public Mono<String> inject() { return Mono.just("Inject " + this.dependency.getMessage()); }  }
FluxController { @GetMapping("/inject") public Mono<String> inject() { return Mono.just("Inject " + this.dependency.getMessage()); }  @GetMapping("/inject") Mono<String> inject(); @GetMapping("/status") @ResponseStatus(HttpStatus.CREATED) Mono<String> status(); @GetMapping("/path/{param}") Mono<String> pathParam(@PathVariable("param") String parameter); @GetMapping(path = "/query", params = "param") Mono<String> requestParam(@RequestParam("param") String parameter); @GetMapping(path = "/header", headers = "header") Mono<String> header(@RequestHeader("header") String header); @PostMapping Mono<String> post(@RequestBody String requestBody); }
FluxController { @GetMapping("/inject") public Mono<String> inject() { return Mono.just("Inject " + this.dependency.getMessage()); }  @GetMapping("/inject") Mono<String> inject(); @GetMapping("/status") @ResponseStatus(HttpStatus.CREATED) Mono<String> status(); @GetMapping("/path/{param}") Mono<String> pathParam(@PathVariable("param") String parameter); @GetMapping(path = "/query", params = "param") Mono<String> requestParam(@RequestParam("param") String parameter); @GetMapping(path = "/header", headers = "header") Mono<String> header(@RequestHeader("header") String header); @PostMapping Mono<String> post(@RequestBody String requestBody);  }