Browse Source

formatting

pull/1595/head
Spencer Gibb 5 years ago
parent
commit
138ea51ec2
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 23
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyRequestBodyGatewayFilterFactoryTests.java

23
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyRequestBodyGatewayFilterFactoryTests.java

@ -66,7 +66,6 @@ public class ModifyRequestBodyGatewayFilterFactoryTests extends BaseWebClientTes @@ -66,7 +66,6 @@ public class ModifyRequestBodyGatewayFilterFactoryTests extends BaseWebClientTes
.isEqualTo("modifyrequest");
}
@EnableAutoConfiguration
@SpringBootConfiguration
@Import(DefaultTestConfig.class)
@ -85,17 +84,17 @@ public class ModifyRequestBodyGatewayFilterFactoryTests extends BaseWebClientTes @@ -85,17 +84,17 @@ public class ModifyRequestBodyGatewayFilterFactoryTests extends BaseWebClientTes
return Mono.just("modifyrequest");
}))
.uri(uri))
.route("test_modify_request_body_empty",
r -> r.order(-1).host("**.modifyrequestbodyempty.org")
.filters(f -> f.modifyRequestBody(String.class, String.class,
MediaType.APPLICATION_JSON_VALUE,
(serverWebExchange, body) -> {
if (body == null) {
return Mono.just("modifyrequest");
}
return Mono.just(body.toUpperCase());
}))
.uri(uri))
.route("test_modify_request_body_empty", r -> r.order(-1)
.host("**.modifyrequestbodyempty.org")
.filters(f -> f.modifyRequestBody(String.class, String.class,
MediaType.APPLICATION_JSON_VALUE,
(serverWebExchange, body) -> {
if (body == null) {
return Mono.just("modifyrequest");
}
return Mono.just(body.toUpperCase());
}))
.uri(uri))
.build();
}

Loading…
Cancel
Save