aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 15:43:59 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 15:43:59 +0100
commit107ef426ad6163d9a97177e6b8d51cd2291f6daf (patch)
treed8a1ad87c0dc0dd1abcdae9ae0df077aba8544b5 /test/src
parent5c709d949d5497e562048b2731ab1c25cc06f386 (diff)
downloaddokka-107ef426ad6163d9a97177e6b8d51cd2291f6daf.tar.gz
dokka-107ef426ad6163d9a97177e6b8d51cd2291f6daf.tar.bz2
dokka-107ef426ad6163d9a97177e6b8d51cd2291f6daf.zip
represent Java annotations in dokka
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 df8d8eae..ff04c90c 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -143,4 +143,21 @@ public class JavaTest {
assertFalse("static" in m.details(DocumentationNode.Kind.Modifier).map { it.name })
}
}
+
+ Test fun annotatedAnnotation() {
+ verifyPackageMember("test/data/java/annotatedAnnotation.java") { cls ->
+ assertEquals(2, cls.annotations.size())
+ with(cls.annotations[0]) {
+ 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("RetentionPolicy.RUNTIME", name)
+ }
+ }
+ }
+ }
+ }
}