aboutsummaryrefslogtreecommitdiff
path: root/testApi/src
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-07-27 23:42:07 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-19 13:34:10 +0200
commitb12d8878aa072e3c71f2a9204040da6bfa3e5a11 (patch)
tree8f04c239bd3028ca096c7c106aa4cb0e188c1c6d /testApi/src
parentfc38ceda06d92978175d37bb7197763539c966a2 (diff)
downloaddokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.tar.gz
dokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.tar.bz2
dokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.zip
Fix tests containing unresolved links
Diffstat (limited to 'testApi/src')
-rw-r--r--testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt
index 995bd949..333642b1 100644
--- a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt
+++ b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt
@@ -12,6 +12,7 @@ import org.jetbrains.dokka.utilities.DokkaConsoleLogger
import org.jetbrains.dokka.utilities.DokkaLogger
import org.junit.rules.TemporaryFolder
import java.io.File
+import java.net.URL
import java.nio.charset.Charset
import java.nio.file.Files
import java.nio.file.InvalidPathException
@@ -261,6 +262,11 @@ abstract class AbstractCoreTest(
?.replaceAfter(".jar", "")
}
+ protected val stdlibExternalDocumentationLink = ExternalDocumentationLinkImpl(
+ URL("https://kotlinlang.org/api/latest/jvm/stdlib/"),
+ URL("https://kotlinlang.org/api/latest/jvm/stdlib/package-list")
+ )
+
companion object {
private val filePathRegex = Regex("""[\n^](/\w+)+(\.\w+)?\s*\n""")
}