Skip to content

Commit 6a76d21

Browse files
committed
Fixed several unit tests after relay connection implementation
1 parent a33a663 commit 6a76d21

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/main/kotlin/com/coxautodev/graphql/tools/FieldResolverScanner.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ internal class FieldResolverScanner(val options: SchemaParserOptions) {
5757
private fun findFieldResolver(field: FieldDefinition, search: Search, scanProperties: Boolean): FieldResolver? {
5858
val method = findResolverMethod(field, search)
5959
if (method != null) {
60-
if (search.type is ParameterizedType && search.type.actualTypeArguments.isNotEmpty()) {
61-
log.debug("actual type parameters: ${search.type.actualTypeArguments[0]}")
62-
}
63-
log.debug("method hit: ${method} and search type ${search.type} and declaring class ${method.declaringClass}")
6460
return MethodFieldResolver(field, search, options, method.apply { isAccessible = true })
6561
}
6662

src/test/groovy/com/coxautodev/graphql/tools/SchemaParserSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SchemaParserSpec extends Specification {
198198
.makeExecutableSchema()
199199

200200
then:
201-
thrown(TypeClassMatcher.RawClassRequiredForGraphQLMappingException)
201+
thrown(SchemaClassScannerError)
202202
}
203203

204204
def "parser should throw descriptive exception when object is used as input type incorrectly"() {

src/test/groovy/com/coxautodev/graphql/tools/TypeClassMatcherSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class TypeClassMatcherSpec extends Specification {
119119
then:
120120
noExceptionThrown()
121121
match.type == unwrappedCustomDefinition
122-
match.clazz == UnwrappedGenericCustomType
122+
match.classEntry.clazz == UnwrappedGenericCustomType
123123
}
124124

125125
private class Super<Unused, Type, ListFutureType> implements GraphQLQueryResolver {

0 commit comments

Comments
 (0)