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