aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-29 15:29:16 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-29 15:29:16 +0200
commit3356187ba8742cb987ca2c7bd543e2890bcedf29 (patch)
treee253b56b5ac180535caf4d77160b33593f9770bf /core/src/test/kotlin
parentad8af9c7d489026bbab66c1e79e9e2c3ffb694be (diff)
downloaddokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.tar.gz
dokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.tar.bz2
dokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.zip
don't report type parameters for array classes; don't report qualified names for stdlib types such as java.lang.String
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/javadoc/JavadocTest.kt15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt
index 54654a2c..8bd520f6 100644
--- a/core/src/test/kotlin/javadoc/JavadocTest.kt
+++ b/core/src/test/kotlin/javadoc/JavadocTest.kt
@@ -59,4 +59,19 @@ class JavadocTest {
assertEquals("[]", member.returnType().dimension())
}
}
+
+ @Test fun testStringArray() {
+ verifyModel("testdata/javadoc/stringarr.kt", format = "javadoc", withKotlinRuntime = true) { model ->
+ val doc = ModuleNodeAdapter(model, StandardReporter(DokkaConsoleLogger), "")
+
+ val classDoc = doc.classNamed("foo.Foo")!!
+ assertNotNull(classDoc.asClassDoc())
+
+ val member = classDoc.methods().find { it.name() == "main" }!!
+ val paramType = member.parameters()[0].type()
+ assertNull(paramType.asParameterizedType())
+ assertEquals("String", paramType.typeName())
+ assertEquals("String", paramType.asClassDoc().name())
+ }
+ }
}