diff options
Diffstat (limited to 'test/src/model/PackageTest.kt')
-rw-r--r-- | test/src/model/PackageTest.kt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/src/model/PackageTest.kt b/test/src/model/PackageTest.kt new file mode 100644 index 00000000..7b376012 --- /dev/null +++ b/test/src/model/PackageTest.kt @@ -0,0 +1,46 @@ +package org.jetbrains.dokka.tests + +import org.junit.Test +import kotlin.test.* +import org.jetbrains.dokka.* + +public class PackageTest { + Test fun rootPackage() { + verifyModel("test/data/packages/rootPackage.kt") { model -> + with(model.nodes.single()) { + assertEquals(DocumentationNodeKind.Package, kind) + assertEquals("", name) + assertEquals("", doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + } + } + + Test fun simpleNamePackage() { + verifyModel("test/data/packages/simpleNamePackage.kt") { model -> + with(model.nodes.single()) { + assertEquals(DocumentationNodeKind.Package, kind) + assertEquals("simple", name) + assertEquals("", doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + } + } + + Test fun dottedNamePackage() { + verifyModel("test/data/packages/dottedNamePackage.kt") { model -> + with(model.nodes.single()) { + assertEquals(DocumentationNodeKind.Package, kind) + assertEquals("dot.name", name) + assertEquals("", doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + } + } +}
\ No newline at end of file |