From d870be7a05e5de616bb3c551d3270d4b2d1c9530 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 21 Nov 2019 21:02:47 +0100 Subject: [PATCH] WIP: WebClient -- Syntax vereinfacht --- .../GraphApiExchangeFilterFunctionIntegrationTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); }); } -- 2.20.1