@Test public void greet() { webTestClient .get() .uri("/public/greet") .exchange() .expectStatus().isOk() .expectBody().json("{\"greet\":\"Hi everybody\"}"); }
@GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); }
WebApiPublicController { @GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); } }
WebApiPublicController { @GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); }  }
WebApiPublicController { @GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); }  @GetMapping("greet") Mono<Map> greet(); }
WebApiPublicController { @GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); }  @GetMapping("greet") Mono<Map> greet();  }