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