diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 16:00:43 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 16:00:43 +0100 |
commit | 0544db0b45826b7666abdf88352ac93a19e80995 (patch) | |
tree | 088c8f6801a3251536e9553604773276ff5400fe /test/src/model/JavaTest.kt | |
parent | 181418c96f8027a196288a4a6dcd19dc468edf4d (diff) | |
download | dokka-0544db0b45826b7666abdf88352ac93a19e80995.tar.gz dokka-0544db0b45826b7666abdf88352ac93a19e80995.tar.bz2 dokka-0544db0b45826b7666abdf88352ac93a19e80995.zip |
map array types to Kotlin
Diffstat (limited to 'test/src/model/JavaTest.kt')
-rw-r--r-- | test/src/model/JavaTest.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index b0e3a133..d40b3ba3 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -54,4 +54,17 @@ public class JavaTest { } } } + + Test fun arrayType() { + verifyModel("test/data/java/arrayType.java") { model -> + val pkg = model.members.single() + with(pkg.members.single().members.single()) { + assertEquals("Array<String>", detail(DocumentationNode.Kind.Type).name) + with(details(DocumentationNode.Kind.Parameter).single()) { + assertEquals("Array<Int>", detail(DocumentationNode.Kind.Type).name) + } + } + } + } + } |