aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 16:22:38 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 16:22:38 +0100
commit4bec8fc549a8c6614ad5871417b9cbcfb1dee57b (patch)
tree5901483d257481c6326d01c88af7451b8152841f /test/src
parent17e25efa87dc6eea3b1e098619a07a65f0b3f8e8 (diff)
downloaddokka-4bec8fc549a8c6614ad5871417b9cbcfb1dee57b.tar.gz
dokka-4bec8fc549a8c6614ad5871417b9cbcfb1dee57b.tar.bz2
dokka-4bec8fc549a8c6614ad5871417b9cbcfb1dee57b.zip
represent java.lang.Deprecated annotation as deprecation
Diffstat (limited to 'test/src')
-rw-r--r--test/src/model/JavaTest.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index cdb0ba44..c727277a 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -161,6 +161,23 @@ public class JavaTest {
}
}
+ Test fun deprecation() {
+ verifyPackageMember("test/data/java/deprecation.java") { cls ->
+ val fn = cls.members(DocumentationNode.Kind.Function).single()
+ with(fn.deprecation!!) {
+ assertEquals(1, details.count())
+ with(details[0]) {
+ assertEquals(DocumentationNode.Kind.Parameter, kind)
+ assertEquals(1, details.count())
+ with(details[0]) {
+ assertEquals(DocumentationNode.Kind.Value, kind)
+ assertEquals("This should no longer be used", name)
+ }
+ }
+ }
+ }
+ }
+
Test fun javaLangObject() {
verifyPackageMember("test/data/java/javaLangObject.java") { cls ->
val fn = cls.members(DocumentationNode.Kind.Function).single()