Skip to content

Commit 9adc921

Browse files
hiddewiefedericorispo
authored andcommitted
add valid locations
1 parent 28fa810 commit 9adc921

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphql-java-servlet/src/test/groovy/graphql/kickstart/servlet/OsgiGraphQLHttpServletSpec.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import graphql.annotations.processor.GraphQLAnnotations
77
import graphql.execution.instrumentation.InstrumentationState
88
import graphql.execution.instrumentation.SimplePerformantInstrumentation
99
import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters
10+
import graphql.introspection.Introspection
1011
import graphql.kickstart.execution.GraphQLRequest
1112
import graphql.kickstart.execution.config.ExecutionStrategyProvider
1213
import graphql.kickstart.execution.config.InstrumentationProvider
@@ -268,7 +269,7 @@ class OsgiGraphQLHttpServletSpec extends Specification {
268269
static class TestDirectiveProvider implements GraphQLDirectiveProvider {
269270
@Override
270271
Set<GraphQLDirective> getDirectives() {
271-
return new HashSet<>(Arrays.asList(GraphQLDirective.newDirective().name("myDirective").build()));
272+
return new HashSet<>(Arrays.asList(GraphQLDirective.newDirective().name("myDirective").validLocation(Introspection.DirectiveLocation.FIELD).build()));
272273
}
273274
}
274275

0 commit comments

Comments
 (0)