diff --git a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/SimpleUrlHandlerCorsTests.java b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/SimpleUrlHandlerCorsTests.java index 524cd87d1..f909c7f20 100644 --- a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/SimpleUrlHandlerCorsTests.java +++ b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/SimpleUrlHandlerCorsTests.java @@ -57,11 +57,12 @@ public class SimpleUrlHandlerCorsTests extends BaseWebClientTests { assertThat(bodyToMono.block()).isNull(); assertThat(asHttpHeaders.getAccessControlAllowOrigin()) .as("Missing header value in response: " - + HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN).isEqualTo("*"); + + HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN) + .isEqualTo("*"); assertThat(asHttpHeaders.getAccessControlAllowMethods()) .as("Missing header value in response: " + HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS) - .isEqualTo(Arrays.asList(new HttpMethod[] {HttpMethod.GET})); + .isEqualTo(Arrays.asList(new HttpMethod[] { HttpMethod.GET })); assertThat(clientResponse.statusCode()).as("Pre Flight call failed.") .isEqualTo(HttpStatus.OK); } @@ -76,7 +77,8 @@ public class SimpleUrlHandlerCorsTests extends BaseWebClientTests { assertThat(bodyToMono.block()).isNotNull(); assertThat(asHttpHeaders.getAccessControlAllowOrigin()) .as("Missing header value in response: " - + HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN).isEqualTo("*"); + + HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN) + .isEqualTo("*"); assertThat(clientResponse.statusCode()).as("CORS request failed.") .isEqualTo(HttpStatus.NOT_FOUND); } diff --git a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RetryGatewayFilterFactoryIntegrationTests.java b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RetryGatewayFilterFactoryIntegrationTests.java index d5349c3b0..39a8fe143 100644 --- a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RetryGatewayFilterFactoryIntegrationTests.java +++ b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RetryGatewayFilterFactoryIntegrationTests.java @@ -208,12 +208,10 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest .uri(uri)) .route("retry_with_backoff", r -> r.host("**.retrywithbackoff.org") - .filters(f -> f.prefixPath("/httpbin") - .retry(config -> { - config.setRetries(2).setBackoff( - Duration.ofMillis(100), null, 2, true); - })) - .uri(uri)) + .filters(f -> f.prefixPath("/httpbin").retry(config -> { + config.setRetries(2).setBackoff(Duration.ofMillis(100), + null, 2, true); + })).uri(uri)) .route("retry_with_loadbalancer", r -> r.host("**.retrywithloadbalancer.org") diff --git a/spring-cloud-gateway-mvc/src/test/java/org/springframework/cloud/gateway/mvc/ProductionConfigurationTests.java b/spring-cloud-gateway-mvc/src/test/java/org/springframework/cloud/gateway/mvc/ProductionConfigurationTests.java index 93c496517..18ecf85ef 100644 --- a/spring-cloud-gateway-mvc/src/test/java/org/springframework/cloud/gateway/mvc/ProductionConfigurationTests.java +++ b/spring-cloud-gateway-mvc/src/test/java/org/springframework/cloud/gateway/mvc/ProductionConfigurationTests.java @@ -359,8 +359,7 @@ public class ProductionConfigurationTests { @PostMapping("/proxy/no-body") public ResponseEntity noBody(ProxyExchange proxy) throws Exception { - return proxy.uri(home.toString() + "/foos") - .post(); + return proxy.uri(home.toString() + "/foos").post(); } @GetMapping("/forward/**")