aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorKrystian Ujma <krystianujma@gmail.com>2019-03-01 14:43:14 +0100
committerSimon Ogorodnik <simon.ogorodnik@gmail.com>2019-03-01 16:43:14 +0300
commit01f2f0372410ff500c59247b639660161b314afa (patch)
treefd5a093f7d5e350f4ae7b6faa0dd45b047894a2d /core/src/test
parent3fc4102597437dbf217c96b70000cac5fb9b591b (diff)
downloaddokka-01f2f0372410ff500c59247b639660161b314afa.tar.gz
dokka-01f2f0372410ff500c59247b639660161b314afa.tar.bz2
dokka-01f2f0372410ff500c59247b639660161b314afa.zip
Fix constructor tag does not work (#417)
#300 Fixed
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/kotlin/javadoc/JavadocTest.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt
index 04f8b920..3e5b5ff8 100644
--- a/core/src/test/kotlin/javadoc/JavadocTest.kt
+++ b/core/src/test/kotlin/javadoc/JavadocTest.kt
@@ -243,6 +243,22 @@ class JavadocTest {
}
}
+ @Test
+ fun testDefaultNoArgConstructor() {
+ verifyJavadoc("testdata/javadoc/defaultNoArgConstructor.kt") { doc ->
+ val classDoc = doc.classNamed("foo.Peach")!!
+ assertTrue(classDoc.constructors()[0].tags()[2].text() == "print peach")
+ }
+ }
+
+ @Test
+ fun testNoArgConstructor() {
+ verifyJavadoc("testdata/javadoc/noArgConstructor.kt") { doc ->
+ val classDoc = doc.classNamed("foo.Plum")!!
+ assertTrue(classDoc.constructors()[0].tags()[2].text() == "print plum")
+ }
+ }
+
private fun verifyJavadoc(name: String,
withJdk: Boolean = false,
withKotlinRuntime: Boolean = false,