We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 420481f commit 08d4bb9Copy full SHA for 08d4bb9
1 file changed
src/test/groovy/graphql/language/AstPrinterTest.groovy
@@ -586,4 +586,22 @@ extend input Input @directive {
586
587
}
588
589
+ def 'Interfaces implementing interfaces in extension'() {
590
+ given:
591
+ AstPrinter astPrinter = new AstPrinter(true)
592
+ def interfaceType = InterfaceTypeExtensionDefinition
593
+ .newInterfaceTypeExtensionDefinition()
594
+ .name("Resource")
595
+ .implementz(new TypeName("Node"))
596
+ .implementz(new TypeName("Extra"))
597
+ .build()
598
+
599
+ when:
600
+ def result = astPrinter.printAst(interfaceType)
601
602
+ then:
603
+ result == "extend interface Resource implements Node & Extra {}"
604
605
+ }
606
607
0 commit comments