formatting

This commit is contained in:
Spencer Gibb
2019-07-25 15:27:35 -04:00
parent 83515df63b
commit afa858af6e
3 changed files with 10 additions and 11 deletions

View File

@@ -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);
}

View File

@@ -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")

View File

@@ -359,8 +359,7 @@ public class ProductionConfigurationTests {
@PostMapping("/proxy/no-body")
public ResponseEntity<Foo> noBody(ProxyExchange<Foo> proxy) throws Exception {
return proxy.uri(home.toString() + "/foos")
.post();
return proxy.uri(home.toString() + "/foos").post();
}
@GetMapping("/forward/**")