diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-09-08 00:13:13 +0200 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2020-09-30 13:43:08 +0200 |
commit | adf99ba137bc6e40c3add9df70f906a16f9199a4 (patch) | |
tree | 755353814f7fa0ae45cdd7a7abbabdb47323d2ea /plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt | |
parent | 33c1eb4f6ad1d7ec4cd1e7760c37728a930a52b6 (diff) | |
download | dokka-adf99ba137bc6e40c3add9df70f906a16f9199a4.tar.gz dokka-adf99ba137bc6e40c3add9df70f906a16f9199a4.tar.bz2 dokka-adf99ba137bc6e40c3add9df70f906a16f9199a4.zip |
Add tests for relocations in ExternalLocationProviders
Diffstat (limited to 'plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt')
-rw-r--r-- | plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt index bfa60d24..7d21e0a7 100644 --- a/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt +++ b/plugins/base/src/test/kotlin/locationProvider/DefaultExternalLocationProviderTest.kt @@ -1,6 +1,5 @@ package locationProvider -import org.jetbrains.dokka.ExternalDocumentationLink import org.jetbrains.dokka.base.resolvers.external.DefaultExternalLocationProvider import org.jetbrains.dokka.base.resolvers.shared.ExternalDocumentation import org.jetbrains.dokka.base.resolvers.shared.PackageList @@ -23,7 +22,6 @@ class DefaultExternalLocationProviderTest : AbstractCoreTest() { sourceSet { sourceRoots = listOf("src/") classpath += jvmStdlibPath!! - ExternalDocumentationLink(kotlinLang, packageListURL.toString()) } } } @@ -62,4 +60,15 @@ class DefaultExternalLocationProviderTest : AbstractCoreTest() { assertEquals("$kotlinLang/kotlin-stdlib/[JS root]/long-array.html", locationProvider.resolve(dri)) } + + @Test + fun `should return null for class not in list`() { + val locationProvider = getTestLocationProvider() + val dri = DRI( + "foo", + "Bar" + ) + + assertEquals(null, locationProvider.resolve(dri)) + } } |