diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt | 9 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt index e6546311..dcf08f27 100644 --- a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt @@ -16,7 +16,8 @@ import org.junit.jupiter.api.Test import java.net.URL class DefaultExternalLocationProviderTest : AbstractCoreTest() { - private val testDataDir = getTestDataDir("locationProvider").toAbsolutePath() + private val testDataDir = + getTestDataDir("locationProvider").toAbsolutePath().toString().removePrefix("/").let { "/$it" } private val kotlinLang = "https://kotlinlang.org/api/latest/jvm/stdlib" private val packageListURL = URL("file://$testDataDir/stdlib-package-list") private val configuration = dokkaConfiguration { @@ -54,8 +55,10 @@ class DefaultExternalLocationProviderTest : AbstractCoreTest() { Callable( "longArray", null, - listOf(TypeConstructor("kotlin.Int", emptyList()), - TypeConstructor("kotlin.Any", emptyList())) + listOf( + TypeConstructor("kotlin.Int", emptyList()), + TypeConstructor("kotlin.Any", emptyList()) + ) ) ) diff --git a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt index 0d419520..590bc0a3 100644 --- a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt @@ -14,7 +14,8 @@ import org.junit.jupiter.api.Test import java.net.URL class Dokka010ExternalLocationProviderTest : AbstractCoreTest() { - private val testDataDir = getTestDataDir("locationProvider").toAbsolutePath() + private val testDataDir = + getTestDataDir("locationProvider").toAbsolutePath().toString().removePrefix("/").let { "/$it" } private val kotlinLang = "https://kotlinlang.org/api/latest/jvm/stdlib" private val packageListURL = URL("file://$testDataDir/old-package-list") private val configuration = dokkaConfiguration { |