aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/JavaTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/JavaTest.kt')
-rw-r--r--test/src/model/JavaTest.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 26e5536f..1c2df0d6 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -192,4 +192,12 @@ public class JavaTest {
assertEquals(1, cls.members(DocumentationNode.Kind.EnumItem).size())
}
}
+
+ Test fun inheritorLinks() {
+ verifyPackageMember("test/data/java/inheritorLinks.java") { cls ->
+ val fooClass = cls.members.single { it.name == "Foo" }
+ val inheritors = fooClass.references(DocumentationReference.Kind.Inheritor)
+ assertEquals(1, inheritors.size())
+ }
+ }
}