mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
This commit is contained in:
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…
Reference in New Issue
Block a user