diff --git a/spring-integration-graphql/src/test/java/org/springframework/integration/graphql/outbound/GraphQlMessageHandlerTests.java b/spring-integration-graphql/src/test/java/org/springframework/integration/graphql/outbound/GraphQlMessageHandlerTests.java index 546b41855f..71815ff00e 100644 --- a/spring-integration-graphql/src/test/java/org/springframework/integration/graphql/outbound/GraphQlMessageHandlerTests.java +++ b/spring-integration-graphql/src/test/java/org/springframework/integration/graphql/outbound/GraphQlMessageHandlerTests.java @@ -316,7 +316,7 @@ public class GraphQlMessageHandlerTests { @Bean GraphQlSource graphQlSource(AnnotatedControllerConfigurer annotatedDataFetcherConfigurer) { - return GraphQlSource.builder() + return GraphQlSource.schemaResourceBuilder() .schemaResources(new ClassPathResource("graphql/test-schema.graphqls")) .configureRuntimeWiring(annotatedDataFetcherConfigurer) .build();