aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-20 18:30:27 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-20 18:30:27 +0100
commitf26fccd1ed4cdb399c41f87541099d8cc9f85417 (patch)
tree21cc1fe1fd2831d23f2a06deea7c6b7f8929f13e /test/src/model
parentfdd2d9a25661b0faba687a168855138dc8ee30fa (diff)
downloaddokka-f26fccd1ed4cdb399c41f87541099d8cc9f85417.tar.gz
dokka-f26fccd1ed4cdb399c41f87541099d8cc9f85417.tar.bz2
dokka-f26fccd1ed4cdb399c41f87541099d8cc9f85417.zip
inheritor links for Java classes
Diffstat (limited to 'test/src/model')
-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())
+ }
+ }
}