diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-08-19 11:45:08 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-19 13:34:10 +0200 |
commit | 6ca48a067d90b200cb93332235821549bb1a742b (patch) | |
tree | 70d22fc0c1f3858fb83283413d5f10b501dc95f0 /plugins/base/src/test/kotlin | |
parent | be9614ff2d5ab4a65f0e2dbc2d33c884de8e12e2 (diff) | |
download | dokka-6ca48a067d90b200cb93332235821549bb1a742b.tar.gz dokka-6ca48a067d90b200cb93332235821549bb1a742b.tar.bz2 dokka-6ca48a067d90b200cb93332235821549bb1a742b.zip |
Fix relocation id creation in the Dokka010ExternalLocationProvider
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt index 280fcc24..0d419520 100644 --- a/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/Dokka010ExternalLocationProviderTest.kt @@ -6,6 +6,7 @@ import org.jetbrains.dokka.base.resolvers.shared.ExternalDocumentation import org.jetbrains.dokka.base.resolvers.shared.PackageList import org.jetbrains.dokka.links.Callable import org.jetbrains.dokka.links.DRI +import org.jetbrains.dokka.links.TypeConstructor import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals @@ -49,4 +50,23 @@ class Dokka010ExternalLocationProviderTest : AbstractCoreTest() { assertEquals("$kotlinLang/kotlin.relocated.text/-string-builder/index.html", locationProvider.resolve(dri)) } + + @Test + fun `method relocation in package list`() { + val locationProvider = getTestLocationProvider() + val dri = DRI( + "kotlin", + "", + Callable( + "minus", + null, + listOf( + TypeConstructor("java.math.BigDecimal", emptyList()), + TypeConstructor("java.math.BigDecimal", emptyList()) + ) + ) + ) + + assertEquals("$kotlinLang/kotlin/java.math.-big-decimal/minus.html", locationProvider.resolve(dri)) + } } |