diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-07-27 23:42:07 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-19 13:34:10 +0200 |
commit | b12d8878aa072e3c71f2a9204040da6bfa3e5a11 (patch) | |
tree | 8f04c239bd3028ca096c7c106aa4cb0e188c1c6d /testApi/src/main | |
parent | fc38ceda06d92978175d37bb7197763539c966a2 (diff) | |
download | dokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.tar.gz dokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.tar.bz2 dokka-b12d8878aa072e3c71f2a9204040da6bfa3e5a11.zip |
Fix tests containing unresolved links
Diffstat (limited to 'testApi/src/main')
-rw-r--r-- | testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt | 6 |
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""") } |