diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-30 19:33:29 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-30 19:33:29 +0100 |
commit | ded569657d1f16905180313593336963c467f242 (patch) | |
tree | b25ff8eab14b565e6eb03b959c76e3a5601cd565 /test/src/model | |
parent | e4b2ae90bf0e84f76ceb7c56b7c128d28adad917 (diff) | |
download | dokka-ded569657d1f16905180313593336963c467f242.tar.gz dokka-ded569657d1f16905180313593336963c467f242.tar.bz2 dokka-ded569657d1f16905180313593336963c467f242.zip |
load KDoc comments when building javadoc
Diffstat (limited to 'test/src/model')
-rw-r--r-- | test/src/model/KotlinAsJavaTest.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/model/KotlinAsJavaTest.kt b/test/src/model/KotlinAsJavaTest.kt index 25ee5fad..0b609a2b 100644 --- a/test/src/model/KotlinAsJavaTest.kt +++ b/test/src/model/KotlinAsJavaTest.kt @@ -19,6 +19,15 @@ class KotlinAsJavaTest { assertEquals(DocumentationNode.Kind.CompanionObjectFunction, fn.kind) } } + + @Test fun propertyWithComment() { + verifyModelAsJava("test/data/comments/oneLineDoc.kt") { model -> + val facadeClass = model.members.single().members.single { it.name == "OneLineDocKt" } + val getter = facadeClass.members.single { it.name == "getProperty" } + assertEquals(DocumentationNode.Kind.CompanionObjectFunction, getter.kind) + assertEquals("doc", getter.content.summary.toTestString()) + } + } } fun verifyModelAsJava(source: String, |