@Test public void getAllReservations() { Flux<Reservation> reservations = this.reservationClient .getAllReservations(); StepVerifier .create(reservations) .expectNextMatches(r -> StringUtils.hasText(r.getId()) && StringUtils.hasText(r.getReservationName())) .expectNextMatches(r -> StringUtils.hasText(r.getId()) && StringUtils.hasText(r.getReservationName())) .verifyComplete(); }
public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } ReservationClient(WebClient webClient); }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } ReservationClient(WebClient webClient); Flux<Reservation> getAllReservations(); }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } ReservationClient(WebClient webClient); Flux<Reservation> getAllReservations();  }