pull/29812/head
Andy Wilkinson 3 years ago
parent 227c3164f1
commit 4e054385a4

@ -50,7 +50,7 @@ public class GraphQlTesterAutoConfiguration {
public ExecutionGraphQlServiceTester graphQlTester(ExecutionGraphQlService graphQlService,
ObjectProvider<ObjectMapper> objectMapperProvider) {
ExecutionGraphQlServiceTester.Builder<?> builder = ExecutionGraphQlServiceTester.builder(graphQlService);
objectMapperProvider.ifAvailable(objectMapper -> {
objectMapperProvider.ifAvailable((objectMapper) -> {
final MediaType[] mediaTypes = new MediaType[] { MediaType.APPLICATION_JSON,
MediaType.APPLICATION_GRAPHQL };
builder.encoder(new Jackson2JsonEncoder(objectMapper, mediaTypes));

Loading…
Cancel
Save