Skip to content
Prev Previous commit
Fix test
  • Loading branch information
oryan-block committed Dec 24, 2020
commit 2c707d438a80a1413d7f5ea9ef5f0e273d9f1d79
10 changes: 8 additions & 2 deletions src/test/groovy/graphql/kickstart/tools/SchemaParserSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class SchemaParserSpec extends Specification {
id: ID!
c: C
}
type Query {}
type Query { test: Boolean }
type Mutation {
test(input: A!): Boolean
testC(input: C!): Boolean
Expand All @@ -394,17 +394,23 @@ class SchemaParserSpec extends Specification {
String id;
B b;
}

static class B {
String id;
A a;
}

static class C {
String id;
C c;
}

boolean test(A a) { return true }

boolean testC(C c) { return true }
}, new GraphQLQueryResolver() {})
}, new GraphQLQueryResolver() {
boolean test() { false }
})
.build()
.makeExecutableSchema()

Expand Down