diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/GraphQlAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/GraphQlAutoConfigurationTests.java index 0ba2700d054c..2719747656e1 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/GraphQlAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/GraphQlAutoConfigurationTests.java @@ -21,12 +21,9 @@ import graphql.GraphQL; import graphql.execution.instrumentation.ChainedInstrumentation; import graphql.execution.instrumentation.Instrumentation; -import graphql.schema.FieldCoordinates; -import graphql.schema.GraphQLFieldDefinition; import graphql.schema.GraphQLObjectType; import graphql.schema.GraphQLOutputType; import graphql.schema.GraphQLSchema; -import graphql.schema.PropertyDataFetcher; import graphql.schema.idl.RuntimeWiring; import graphql.schema.visibility.DefaultGraphqlFieldVisibility; import graphql.schema.visibility.NoIntrospectionGraphqlFieldVisibility; @@ -212,17 +209,6 @@ void shouldContributeConnectionTypeDefinitionConfigurer() { }); } - @Test - void shouldContributeConnectionDataFetcher() { - this.contextRunner.withUserConfiguration(CustomGraphQlBuilderConfiguration.class).run((context) -> { - GraphQlSource graphQlSource = context.getBean(GraphQlSource.class); - GraphQLFieldDefinition books = graphQlSource.schema().getQueryType().getField("books"); - FieldCoordinates booksCoordinates = FieldCoordinates.coordinates("Query", "books"); - assertThat(graphQlSource.schema().getCodeRegistry().getDataFetcher(booksCoordinates, books)) - .isNotInstanceOf(PropertyDataFetcher.class); - }); - } - @Configuration(proxyBeanMethods = false) static class CustomGraphQlBuilderConfiguration {