Skip to content

Commit

Permalink
Merge pull request #1279 from Netflix/feature/address-spockmock-bug
Browse files Browse the repository at this point in the history
[regresion] Allow Spock Stubs to be used as Data Fetchers
  • Loading branch information
srinivasankavitha committed Oct 19, 2022
2 parents 4ce1c46 + 30a0d12 commit 26b6773
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -267,7 +267,7 @@ class DgsSchemaProvider(
val filteredMergedAnnotations =
mergedAnnotations
.stream(DgsData::class.java)
.filter { (it.source as Method).declaringClass == method.declaringClass }
.filter { AopUtils.getTargetClass((it.source as Method).declaringClass) == AopUtils.getTargetClass(method.declaringClass) }
.collect(Collectors.toList())
filteredMergedAnnotations.forEach { dgsDataAnnotation ->
registerDataFetcher(
Expand Down

0 comments on commit 26b6773

Please sign in to comment.