diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 02:41:12 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 02:41:12 +0400 |
commit | 5b24912e46d831434b8b4a12b0aedcf2b06c77e1 (patch) | |
tree | b48e394dc3f8bebcdea06a10cc7195c8fe4515cf /test/src/model/ClassTest.kt | |
parent | e155d101a52f62b0c8c10778fdf0068549b413be (diff) | |
download | dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.tar.gz dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.tar.bz2 dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.zip |
Fix tests after adding type/upperbound information to model.
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r-- | test/src/model/ClassTest.kt | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index 82d24f16..8032b928 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -18,22 +18,13 @@ public class ClassTest { } } - Test fun genericClass() { - verifyModel("test/data/classes/genericClass.kt") { model -> + Test fun gnClass() { + verifyModel("test/data/classes/emptyClass.kt") { model -> with(model.nodes.single().members.single()) { assertEquals(DocumentationNodeKind.Class, kind) assertEquals("Klass", name) assertEquals("", doc) - - with(details.single()) { - assertEquals("T", name) - assertEquals(DocumentationNodeKind.TypeParameter, kind) - assertEquals("", doc) - assertTrue(details.none()) - assertTrue(members.none()) - assertTrue(links.none()) - } - + assertTrue(details.none()) assertEquals("<init>", members.single().name) assertTrue(links.none()) } @@ -72,7 +63,7 @@ public class ClassTest { assertEquals("name", name) assertEquals(DocumentationNodeKind.Parameter, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) assertTrue(members.none()) } @@ -105,7 +96,7 @@ public class ClassTest { assertEquals("fn", name) assertEquals("", doc) assertEquals(DocumentationNodeKind.Function, kind) - assertTrue(details.none()) + assertEquals("Unit", details.single().name) assertTrue(links.none()) assertTrue(members.none()) } @@ -135,7 +126,7 @@ public class ClassTest { assertEquals("name", name) assertEquals("", doc) assertEquals(DocumentationNodeKind.Property, kind) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(members.none()) assertTrue(links.none()) } |