diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-16 12:48:07 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-16 12:48:07 +0100 |
commit | 6c93cc98e52c2096ebd8197a3f2d1201f0a5bedc (patch) | |
tree | 25c8091ea0b5747c3f0d393d6eeffb087d34ca45 /test/src/model/JavaTest.kt | |
parent | 555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4 (diff) | |
download | dokka-6c93cc98e52c2096ebd8197a3f2d1201f0a5bedc.tar.gz dokka-6c93cc98e52c2096ebd8197a3f2d1201f0a5bedc.tar.bz2 dokka-6c93cc98e52c2096ebd8197a3f2d1201f0a5bedc.zip |
represent type arguments as nodes of type Type, not TypeParameter
Diffstat (limited to 'test/src/model/JavaTest.kt')
-rw-r--r-- | test/src/model/JavaTest.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index 62728f45..3ff04b14 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -66,11 +66,11 @@ public class JavaTest { with(cls.members.single()) { val type = detail(DocumentationNode.Kind.Type) assertEquals("Array", type.name) - assertEquals("String", type.detail(DocumentationNode.Kind.TypeParameter).name) + assertEquals("String", type.detail(DocumentationNode.Kind.Type).name) with(details(DocumentationNode.Kind.Parameter).single()) { val type = detail(DocumentationNode.Kind.Type) assertEquals("Array", type.name) - assertEquals("Int", type.detail(DocumentationNode.Kind.TypeParameter).name) + assertEquals("Int", type.detail(DocumentationNode.Kind.Type).name) } } } @@ -83,7 +83,7 @@ public class JavaTest { assertEquals("T", name) with(detail(DocumentationNode.Kind.UpperBound)) { assertEquals("Comparable", name) - assertEquals("T", detail(DocumentationNode.Kind.TypeParameter).name) + assertEquals("T", detail(DocumentationNode.Kind.Type).name) } } with(cls.members.single()) { @@ -119,6 +119,7 @@ public class JavaTest { assertEquals("vararg", param.annotations.first().name) val psiType = param.detail(DocumentationNode.Kind.Type) assertEquals("String", psiType.name) + assertTrue(psiType.details(DocumentationNode.Kind.Type).isEmpty()) } } } |