From b12d8878aa072e3c71f2a9204040da6bfa3e5a11 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 27 Jul 2020 23:42:07 +0200 Subject: Fix tests containing unresolved links --- testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testApi/src') 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""") } -- cgit