You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val error = assertThrows(FieldResolverError::class.java) {
669
674
SchemaParser.newParser()
670
675
.schemaString(
@@ -689,17 +694,53 @@ class SchemaParserTest {
689
694
val expected ="""
690
695
No method or field found as defined in schema <unknown>:3 with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment, class graphql.GraphQLContext] as the last argument), in priority order:
val error = assertThrows(FieldResolverError::class.java) {
714
+
SchemaParser.newParser()
715
+
.schemaString(
716
+
"""
717
+
type Subscription {
718
+
onItemCreated: Int!
719
+
}
720
+
721
+
type Query {
722
+
test: String
723
+
}
724
+
"""
725
+
)
726
+
.resolvers(
727
+
Subscription(),
728
+
object:GraphQLQueryResolver { funtest() ="test" }
729
+
)
730
+
.build()
731
+
.makeExecutableSchema()
732
+
}
733
+
734
+
val expected ="""
735
+
No method or field found as defined in schema <unknown>:3 with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment, class graphql.GraphQLContext] as the last argument), in priority order:
736
+
737
+
graphql.kickstart.tools.SchemaParserTest${"$"}parser should verify subscription resolver generic future return type${"$"}Subscription.onItemCreated()
738
+
graphql.kickstart.tools.SchemaParserTest${"$"}parser should verify subscription resolver generic future return type${"$"}Subscription.getOnItemCreated()
739
+
graphql.kickstart.tools.SchemaParserTest${"$"}parser should verify subscription resolver generic future return type${"$"}Subscription.onItemCreated
740
+
741
+
Note that a Subscription data fetcher must return a Publisher of events
0 commit comments