aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/test/kotlin/org
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin/org')
-rw-r--r--runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt4
-rw-r--r--runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt16
2 files changed, 10 insertions, 10 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt
index 13ba9622..49db0eb6 100644
--- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt
+++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/ConfigureWithKotlinSourceSetGistTest.kt
@@ -26,7 +26,7 @@ class ConfigureWithKotlinSourceSetGistTest {
val gist = KotlinSourceSetGist(
name = "customName",
platform = KotlinPlatformType.common,
- isMain = true,
+ isMain = project.provider { true },
classpath = project.files(f1Jar, f2Jar),
sourceRoots = project.files(customSourceRoot),
dependentSourceSetNames = project.provider { setOf("customRootSourceSet") }
@@ -68,7 +68,7 @@ class ConfigureWithKotlinSourceSetGistTest {
val gist = KotlinSourceSetGist(
name = "customMain",
platform = KotlinPlatformType.common,
- isMain = true,
+ isMain = project.provider { true },
classpath = project.files(),
sourceRoots = project.files(),
dependentSourceSetNames = project.provider { emptySet() }
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt
index 1996bb16..eff0726f 100644
--- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt
+++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt
@@ -37,7 +37,7 @@ class KotlinSourceSetGistTest {
)
assertTrue(
- mainSourceSetGist.isMain,
+ mainSourceSetGist.isMain.getSafe(),
"Expected main sources to be marked as 'isMain'"
)
@@ -57,7 +57,7 @@ class KotlinSourceSetGistTest {
val testSourceSetGist = project.gistOf(testSourceSet)
assertFalse(
- testSourceSetGist.isMain,
+ testSourceSetGist.isMain.getSafe(),
"Expected test source set not being marked as 'isMain'"
)
@@ -204,32 +204,32 @@ class KotlinSourceSetGistTest {
)
assertTrue(
- commonMainSourceSetGist.isMain,
+ commonMainSourceSetGist.isMain.getSafe(),
"Expected commonMain to be marked with 'isMain'"
)
assertTrue(
- jvmMainSourceSetGist.isMain,
+ jvmMainSourceSetGist.isMain.getSafe(),
"Expected jvmMain to be marked with 'isMain'"
)
assertTrue(
- macosMainSourceSetGist.isMain,
+ macosMainSourceSetGist.isMain.getSafe(),
"Expected macosMain to be marked with 'isMain'"
)
assertFalse(
- project.gistOf(kotlin.sourceSets["commonTest"]).isMain,
+ project.gistOf(kotlin.sourceSets["commonTest"]).isMain.getSafe(),
"Expected commonTest not being marked with 'isMain'"
)
assertFalse(
- project.gistOf(kotlin.sourceSets["jvmTest"]).isMain,
+ project.gistOf(kotlin.sourceSets["jvmTest"]).isMain.getSafe(),
"Expected jvmTest not being marked with 'isMain'"
)
assertFalse(
- project.gistOf(kotlin.sourceSets["macosTest"]).isMain,
+ project.gistOf(kotlin.sourceSets["macosTest"]).isMain.getSafe(),
"Expected macosTest not being marked with 'isMain'"
)