Browse Source

Fix build after Spring GraphQL changes

See pring-projects/spring-graphql#229
pull/29975/head
Brian Clozel 4 years ago
parent
commit
b7de02d908
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/reactive/GraphQlWebFluxAutoConfigurationTests.java
  2. 2
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/servlet/GraphQlWebMvcAutoConfigurationTests.java

2
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/reactive/GraphQlWebFluxAutoConfigurationTests.java

@ -174,7 +174,7 @@ class GraphQlWebFluxAutoConfigurationTests { @@ -174,7 +174,7 @@ class GraphQlWebFluxAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
.map((output) -> output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
.doOnNext((output) -> output.getResponseHeaders().add("X-Custom-Header", "42"));
}
}

2
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/servlet/GraphQlWebMvcAutoConfigurationTests.java

@ -185,7 +185,7 @@ class GraphQlWebMvcAutoConfigurationTests { @@ -185,7 +185,7 @@ class GraphQlWebMvcAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (webInput, interceptorChain) -> interceptorChain.next(webInput)
.map((output) -> output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
.doOnNext((output) -> output.getResponseHeaders().add("X-Custom-Header", "42"));
}
}

Loading…
Cancel
Save