From ded569657d1f16905180313593336963c467f242 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 30 Oct 2015 19:33:29 +0100 Subject: load KDoc comments when building javadoc --- test/src/model/KotlinAsJavaTest.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/src/model') 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, -- cgit