test_class.declarator: client
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ReservationClient client;
test_class.type: ReservationClient
test_class.var_name: client
test_class.file: consumer/src/test/java/com/example/consumer/ReservationClientTest.java
test_class.identifier: ReservationClientTest
test_case.body: @Test
      public void getAll() {
  
        /*  WireMock
                  .stubFor(WireMock
                          .get("/reservations")
                          .willReturn(
                                  WireMock
                                          .aResponse()
                                          .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
                                          .withBody("[ { \"id\":\"1\", \"reservationName\":\"Jane\" } ]")
                          ));
  */
  
          Flux<Reservation> allReservations = this.client.getAllReservations();
          StepVerifier
                  .create(allReservations)
                  .expectNextMatches(r -> r.getName().equalsIgnoreCase("Jane") && r.getId() != null)
                  .verifyComplete();
  
      }
test_case.class_method_signature: ReservationClientTest.getAll()
test_case.full_signature: @Test public void getAll()
test_case.identifier: getAll
test_case.invocations: getAllReservations verifyComplete expectNextMatches create equalsIgnoreCase getName getId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAll()
focal_class.declarator: webClient
focal_class.modifier: private final
focal_class.original_string: private final WebClient webClient;
focal_class.type: WebClient
focal_class.var_name: webClient
focal_class.file: consumer/src/main/java/com/example/consumer/ReservationClient.java
focal_class.identifier: ReservationClient
focal_class.class_method_signature: ReservationClient.getAllReservations()
focal_class.full_signature: public Flux<Reservation> getAllReservations()
focal_class.identifier: getAllReservations
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Flux<Reservation>
focal_class.signature: Flux<Reservation> getAllReservations()
focal_method.body: public Flux<Reservation> getAllReservations() {
          return this.webClient
                  .get()
                  .uri("http://localhost:8081/reservations")
                  .retrieve()
                  .bodyToFlux(Reservation.class);
      }
focal_method.class_method_signature: ReservationClient.getAllReservations()
focal_method.full_signature: public Flux<Reservation> getAllReservations()
focal_method.identifier: getAllReservations
focal_method.invocations: bodyToFlux retrieve uri get
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Flux<Reservation>
focal_method.signature: Flux<Reservation> getAllReservations()