aboutsummaryrefslogtreecommitdiff
path: root/javadoc/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'javadoc/src/test')
-rw-r--r--javadoc/src/test/data/obj.kt7
-rw-r--r--javadoc/src/test/data/types.kt4
-rw-r--r--javadoc/src/test/kotlin/JavadocTest.kt44
3 files changed, 0 insertions, 55 deletions
diff --git a/javadoc/src/test/data/obj.kt b/javadoc/src/test/data/obj.kt
deleted file mode 100644
index 1d10a422..00000000
--- a/javadoc/src/test/data/obj.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package foo
-
-class O {
- companion object {
-
- }
-}
diff --git a/javadoc/src/test/data/types.kt b/javadoc/src/test/data/types.kt
deleted file mode 100644
index 55be6058..00000000
--- a/javadoc/src/test/data/types.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-package foo
-
-fun foo(x: Int, o: Any): String {
-}
diff --git a/javadoc/src/test/kotlin/JavadocTest.kt b/javadoc/src/test/kotlin/JavadocTest.kt
deleted file mode 100644
index 1ac7069b..00000000
--- a/javadoc/src/test/kotlin/JavadocTest.kt
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.jetbrains.dokka.javadoc
-
-import org.jetbrains.dokka.DokkaConsoleLogger
-import org.jetbrains.dokka.tests.verifyModel
-import org.junit.Test
-import kotlin.test.assertEquals
-import kotlin.test.assertFalse
-import kotlin.test.assertNotNull
-import kotlin.test.assertTrue
-
-class JavadocTest {
- @Test fun testTypes() {
- verifyModel("javadoc/src/test/data/types.kt", format = "javadoc", withJdk = true) { model ->
- val doc = ModuleNodeAdapter(model, StandardReporter(DokkaConsoleLogger), "")
- val classDoc = doc.classNamed("foo.TypesKt")!!
- val method = classDoc.methods().find { it.name() == "foo" }!!
-
- val type = method.returnType()
- assertFalse(type.asClassDoc().isIncluded)
- assertEquals("java.lang.String", type.qualifiedTypeName())
- assertEquals("java.lang.String", type.asClassDoc().qualifiedName())
-
- val params = method.parameters()
- assertTrue(params[0].type().isPrimitive)
- assertFalse(params[1].type().asClassDoc().isIncluded)
- }
- }
-
- @Test fun testObject() {
- verifyModel("javadoc/src/test/data/obj.kt", format = "javadoc") { model ->
- val doc = ModuleNodeAdapter(model, StandardReporter(DokkaConsoleLogger), "")
-
- val classDoc = doc.classNamed("foo.O")
- assertNotNull(classDoc)
-
- val companionDoc = doc.classNamed("foo.O.Companion")
- assertNotNull(companionDoc)
-
- val pkgDoc = doc.packageNamed("foo")!!
- assertEquals(2, pkgDoc.allClasses().size)
- }
- }
-
-}