@Test public void getAllReservations() throws Exception { List<String> validNames = Arrays.asList("Jane", "John"); Flux<Reservation> reservationFlux = this.client.getAllReservations(); StepVerifier .create(reservationFlux) .expectNextMatches(reservation -> validNames.contains(reservation.getName()) && reservation.getId() != null) .expectNextMatches(reservation -> validNames.contains(reservation.getName()) && reservation.getId() != null) .verifyComplete(); }
public Flux<Reservation> getAllReservations() { return this.client.get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.client.get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.client.get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); }  }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.client.get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); }  Flux<Reservation> getAllReservations(); }
ReservationClient { public Flux<Reservation> getAllReservations() { return this.client.get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); }  Flux<Reservation> getAllReservations();  }