File tree Expand file tree Collapse file tree
src/test/groovy/graphql/validation/rules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package graphql .validation .rules ;
22
3- import graphql .TypeResolutionEnvironment ;
4- import graphql .schema .*;
5-
6- import static graphql .Scalars .*;
3+ import graphql .schema .GraphQLEnumType ;
4+ import graphql .schema .GraphQLInterfaceType ;
5+ import graphql .schema .GraphQLList ;
6+ import graphql .schema .GraphQLObjectType ;
7+ import graphql .schema .GraphQLSchema ;
8+ import graphql .schema .GraphQLTypeReference ;
9+ import graphql .schema .GraphQLUnionType ;
10+ import graphql .schema .TypeResolver ;
11+
12+ import static graphql .Scalars .GraphQLBoolean ;
13+ import static graphql .Scalars .GraphQLInt ;
14+ import static graphql .Scalars .GraphQLString ;
715import static graphql .schema .GraphQLArgument .newArgument ;
816import static graphql .schema .GraphQLEnumType .newEnum ;
917import static graphql .schema .GraphQLFieldDefinition .newFieldDefinition ;
@@ -128,10 +136,7 @@ public class Harness {
128136 .name ("Human" )
129137 .field (newFieldDefinition ()
130138 .name ("name" )
131- .type (GraphQLString )
132- .argument (newArgument ()
133- .name ("surname" )
134- .type (GraphQLBoolean )))
139+ .type (GraphQLString ))
135140 .field (newFieldDefinition ()
136141 .name ("pets" )
137142 .type (new GraphQLList (Pet )))
You can’t perform that action at this time.
0 commit comments