From: Kai Moritz Date: Thu, 21 Nov 2019 20:02:47 +0000 (+0100) Subject: WIP: WebClient -- Syntax vereinfacht X-Git-Tag: wip-webclient~11 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d870be7a05e5de616bb3c551d3270d4b2d1c9530;p=facebook-errors WIP: WebClient -- Syntax vereinfacht --- diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java index 27795f9..8614735 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java @@ -140,10 +140,12 @@ public class GraphApiExchangeFilterFunctionIntegrationTest { return HttpStatus.Series.CLIENT_ERROR.equals(response.statusCode().series()) - ? response.bodyToMono(String.class).flatMap(errorBody -> - { - return Mono.error(GraphApiException.create(response.statusCode(), response.headers().asHttpHeaders(), errorBody.getBytes())); - }) + ? response + .bodyToMono(String.class) + .flatMap(errorBody -> Mono.error(GraphApiException.create( + response.statusCode(), + response.headers().asHttpHeaders(), + errorBody.getBytes()))) : Mono.just(response); }); }