Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 6b88ab2

Browse files
committed
Fix unit test
1 parent 435e88c commit 6b88ab2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphql-spring-boot-autoconfigure/src/test/java/com/oembedler/moon/graphql/boot/test/web/GraphQLWebAutoConfigurationTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import graphql.schema.GraphQLObjectType;
1313
import graphql.schema.GraphQLSchema;
1414
import graphql.servlet.AbstractGraphQLHttpServlet;
15+
import graphql.servlet.config.DefaultGraphQLSchemaServletProvider;
16+
import graphql.servlet.config.GraphQLSchemaServletProvider;
1517
import org.junit.Assert;
1618
import org.junit.Test;
1719
import org.springframework.context.annotation.Bean;
@@ -165,8 +167,8 @@ public MaxQueryDepthInstrumentation maxQueryDepthInstrumentation() {
165167
static class SchemaProviderConfiguration {
166168

167169
@Bean
168-
GraphQLSchemaProvider schemaProvider() {
169-
return new DefaultGraphQLSchemaProvider(SCHEMA);
170+
GraphQLSchemaServletProvider schemaProvider() {
171+
return new DefaultGraphQLSchemaServletProvider(SCHEMA);
170172
}
171173
}
172174

0 commit comments

Comments
 (0)