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
{{ message }}
Repository navigation
Commit 6208907
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/test/kotlin/graphql/kickstart/tools/ReactiveTest.kt
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,7 @@ class ReactiveTest {
127
127
item: Item
128
128
boxedItem: Item
129
129
search: SearchResult
130
+
inheritedSearch: SearchResult
130
131
}
131
132
132
133
union SearchResult = Item
@@ -151,16 +152,21 @@ class ReactiveTest {
151
152
search {
152
153
... on Item { id }
153
154
}
155
+
inheritedSearch {
156
+
... on Item { id }
157
+
}
154
158
}
155
159
""")
156
160
157
-
assertEquals(result.getData(), mapOf("item" to null, "boxedItem" to null, "search" to null))
161
+
assertEquals(result.getData(), mapOf("item" to null, "boxedItem" to null, "search" to null, "inheritedSearch" to null))
158
162
assertEquals(result.errorMessagesByPath(), mapOf(
159
163
"item" to "Resolver method '${ItemQuery::class.java.name}.item' resolved to a java.util.concurrent.FutureTask, "+
160
164
"which graphql-java can't wait on. Return a CompletionStage, such as a CompletableFuture, from the method or its generic wrapper transformer instead.",
161
165
"boxedItem" to "Resolver method '${FutureItemQuery::class.java.name}.boxedItem' resolved to a java.util.concurrent.FutureTask, "+
162
166
"which graphql-java can't wait on. Return a CompletionStage, such as a CompletableFuture, from the method or its generic wrapper transformer instead.",
163
167
"search" to "Resolver method '${FutureItemQuery::class.java.name}.search' resolved to a java.util.concurrent.FutureTask, "+
168
+
"which graphql-java can't wait on. Return a CompletionStage, such as a CompletableFuture, from the method or its generic wrapper transformer instead.",
169
+
"inheritedSearch" to "Resolver method '${ItemQuery::class.java.name}.inheritedSearch' resolved to a java.util.concurrent.FutureTask, "+
164
170
"which graphql-java can't wait on. Return a CompletionStage, such as a CompletableFuture, from the method or its generic wrapper transformer instead."
0 commit comments