From 06989d884beeeb6956a6dc14db85f27fe0272ec8 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 20 Dec 2018 17:50:24 +0100 Subject: [PATCH] Polish "Fix StringSequence.equals() for different lengths" Closes gh-15438 --- .../http/reactive/HttpTraceWebFilterTests.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/reactive/HttpTraceWebFilterTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/reactive/HttpTraceWebFilterTests.java index a1471a9792..062511a8b4 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/reactive/HttpTraceWebFilterTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/reactive/HttpTraceWebFilterTests.java @@ -71,8 +71,8 @@ public class HttpTraceWebFilterTests { MockServerWebExchange .from(MockServerHttpRequest.get("https://api.example.com")), (exchange) -> { - exchange.getSession().block(Duration.ofSeconds(30)) - .getAttributes().put("a", "alpha"); + exchange.getSession().block(Duration.ofSeconds(30)).getAttributes() + .put("a", "alpha"); return Mono.empty(); }).block(Duration.ofSeconds(30)); assertThat(this.repository.findAll()).hasSize(1); @@ -109,8 +109,8 @@ public class HttpTraceWebFilterTests { } }, (exchange) -> { - exchange.getSession().block(Duration.ofSeconds(30)).getAttributes() - .put("a", "alpha"); + exchange.getSession().block(Duration.ofSeconds(30)).getAttributes().put("a", + "alpha"); return Mono.empty(); }).block(Duration.ofSeconds(30)); assertThat(this.repository.findAll()).hasSize(1); @@ -124,10 +124,11 @@ public class HttpTraceWebFilterTests { public void statusIsAssumedToBe500WhenChainFails() throws ServletException, IOException { try { - this.filter.filter( - MockServerWebExchange + this.filter + .filter(MockServerWebExchange .from(MockServerHttpRequest.get("https://api.example.com")), - (exchange) -> Mono.error(new RuntimeException())).block(Duration.ofSeconds(30)); + (exchange) -> Mono.error(new RuntimeException())) + .block(Duration.ofSeconds(30)); fail(); } catch (Exception ex) {