aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/basic
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/basic')
-rw-r--r--plugins/base/src/test/kotlin/basic/DRITest.kt40
-rw-r--r--plugins/base/src/test/kotlin/basic/DokkaBasicTests.kt6
-rw-r--r--plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt18
3 files changed, 32 insertions, 32 deletions
diff --git a/plugins/base/src/test/kotlin/basic/DRITest.kt b/plugins/base/src/test/kotlin/basic/DRITest.kt
index 1f4c7d93..559a2dbf 100644
--- a/plugins/base/src/test/kotlin/basic/DRITest.kt
+++ b/plugins/base/src/test/kotlin/basic/DRITest.kt
@@ -5,19 +5,19 @@ import org.jetbrains.dokka.links.Callable
import org.jetbrains.dokka.links.Nullable
import org.jetbrains.dokka.links.TypeConstructor
import org.jetbrains.dokka.model.*
-import org.jetbrains.dokka.pages.*
-import org.jetbrains.dokka.pages.dfs
-import org.junit.jupiter.api.Assertions.assertEquals
+import org.jetbrains.dokka.pages.ClasslikePageNode
+import org.jetbrains.dokka.pages.ContentPage
+import org.jetbrains.dokka.pages.MemberPageNode
import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest
-
+import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class DRITest : AbstractCoreTest() {
@Test
fun issue634() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
}
}
@@ -52,8 +52,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun issue634WithImmediateNullableSelf() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
}
}
@@ -82,8 +82,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun issue634WithGenericNullableReceiver() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
}
}
@@ -112,8 +112,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun issue642WithStarAndAny() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
analysisPlatform = "js"
sourceRoots = listOf("src/")
}
@@ -171,8 +171,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun driForGenericClass(){
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
}
}
@@ -201,8 +201,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun driForGenericFunction(){
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
classpath = listOfNotNull(jvmStdlibPath)
}
@@ -243,8 +243,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun driForFunctionNestedInsideInnerClass() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
classpath = listOfNotNull(jvmStdlibPath)
}
@@ -280,8 +280,8 @@ class DRITest : AbstractCoreTest() {
@Test
fun driForGenericExtensionFunction(){
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/")
}
}
diff --git a/plugins/base/src/test/kotlin/basic/DokkaBasicTests.kt b/plugins/base/src/test/kotlin/basic/DokkaBasicTests.kt
index 5cc17bf3..bceb79ae 100644
--- a/plugins/base/src/test/kotlin/basic/DokkaBasicTests.kt
+++ b/plugins/base/src/test/kotlin/basic/DokkaBasicTests.kt
@@ -11,8 +11,8 @@ class DokkaBasicTests : AbstractCoreTest() {
@Test
fun basic1() {
val configuration = dokkaConfiguration {
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/main/kotlin/basic/Test.kt")
}
}
@@ -39,4 +39,4 @@ class DokkaBasicTests : AbstractCoreTest() {
private fun ModulePageNode.getClasslikeToMemberMap() =
this.parentMap.filterValues { it is ClasslikePageNode }.entries.groupBy({ it.value }) { it.key }
-} \ No newline at end of file
+}
diff --git a/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt b/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
index d548b75b..9d2c5825 100644
--- a/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
+++ b/plugins/base/src/test/kotlin/basic/FailOnWarningTest.kt
@@ -14,8 +14,8 @@ class FailOnWarningTest : AbstractCoreTest() {
fun `throws exception if one or more warnings were emitted`() {
val configuration = dokkaConfiguration {
failOnWarning = true
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/main/kotlin")
}
}
@@ -39,8 +39,8 @@ class FailOnWarningTest : AbstractCoreTest() {
fun `throws exception if one or more error were emitted`() {
val configuration = dokkaConfiguration {
failOnWarning = true
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/main/kotlin")
}
}
@@ -66,8 +66,8 @@ class FailOnWarningTest : AbstractCoreTest() {
val configuration = dokkaConfiguration {
failOnWarning = true
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/main/kotlin")
}
}
@@ -88,8 +88,8 @@ class FailOnWarningTest : AbstractCoreTest() {
fun `does not throw if disabled`() {
val configuration = dokkaConfiguration {
failOnWarning = false
- passes {
- pass {
+ sourceSets {
+ sourceSet {
sourceRoots = listOf("src/main/kotlin")
}
}
@@ -115,4 +115,4 @@ private class ZeroErrorOrWarningCountDokkaLogger(
) : DokkaLogger by logger {
override var warningsCount: Int = 0
override var errorsCount: Int = 0
-} \ No newline at end of file
+}