+
+ static class ResponseSpecStub implements ResponseSpec
+ {
+ private ResponseSpecStub() {}
+
+
+ @Override
+ public ResponseSpec onStatus(Predicate<HttpStatus> statusPredicate, Function<ClientResponse, Mono<? extends Throwable>> exceptionFunction)
+ {
+ return this;
+ }
+
+ @Override
+ public ResponseSpec onRawStatus(IntPredicate statusCodePredicate, Function<ClientResponse, Mono<? extends Throwable>> exceptionFunction)
+ {
+ return this;
+ }
+
+ @Override
+ public <T> Mono<T> bodyToMono(Class<T> elementClass)
+ {
+ return (Mono<T>)toMono.get();
+ }
+
+ @Override
+ public <T> Mono<T> bodyToMono(ParameterizedTypeReference<T> elementTypeRef)
+ {
+ return (Mono<T>)toMono.get();
+ }
+
+ @Override
+ public <T> Flux<T> bodyToFlux(Class<T> elementClass)
+ {
+ return (Flux<T>)toFlux;
+ }
+
+ @Override
+ public <T> Flux<T> bodyToFlux(ParameterizedTypeReference<T> elementTypeRef)
+ {
+ return (Flux<T>)toFlux;
+ }
+
+ @Override
+ public <T> Mono<ResponseEntity<T>> toEntity(Class<T> bodyClass)
+ {
+ return (Mono<ResponseEntity<T>>)toMono.get();
+ }
+
+ @Override
+ public <T> Mono<ResponseEntity<T>> toEntity(ParameterizedTypeReference<T> bodyTypeReference)
+ {
+ return (Mono<ResponseEntity<T>>)toMono.get();
+ }
+
+ @Override
+ public <T> Mono<ResponseEntity<List<T>>> toEntityList(Class<T> elementClass)
+ {
+ return (Mono<ResponseEntity<List<T>>>)toMono.get();
+ }
+
+ @Override
+ public <T> Mono<ResponseEntity<List<T>>> toEntityList(ParameterizedTypeReference<T> elementTypeRef)
+ {
+ return (Mono<ResponseEntity<List<T>>>)toMono.get();
+ }
+
+ @Override
+ public Mono<ResponseEntity<Void>> toBodilessEntity()
+ {
+ return (Mono<ResponseEntity<Void>>)toMono.get();
+ }
+ }