From 3f8c99cf04893da8fc3c353cba0133dc54e5febe Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 14 Aug 2020 16:02:42 +0200 Subject: Use java.net.URL consistently across Gradle Plugin API surface --- .../dokka/gradle/GradleDokkaSourceSetBuilderTest.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runners/gradle-plugin/src/test/kotlin') diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt index 4ab644e7..e48eb0a4 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilderTest.kt @@ -221,19 +221,19 @@ class GradleDokkaSourceSetBuilderTest { GradleSourceLinkBuilder(project).apply { this.remoteLineSuffix by "ls1" this.localDirectory by project.file("p1") - this.remoteUrl by "u1" + this.remoteUrl by URL("https://u1") }) sourceSet.sourceLink { it.remoteLineSuffix by "ls2" it.localDirectory by project.file("p2") - it.remoteUrl by "u2" + it.remoteUrl by URL("https://u2") } sourceSet.sourceLink(project.closureOf { this.remoteLineSuffix by "ls3" this.localDirectory by project.file("p3") - this.remoteUrl by "u3" + this.remoteUrl by URL("https://u3") }) assertEquals( @@ -241,17 +241,17 @@ class GradleDokkaSourceSetBuilderTest { SourceLinkDefinitionImpl( remoteLineSuffix = "ls1", localDirectory = project.file("p1").absolutePath, - remoteUrl = "u1" + remoteUrl = URL("https://u1") ), SourceLinkDefinitionImpl( remoteLineSuffix = "ls2", localDirectory = project.file("p2").absolutePath, - remoteUrl = "u2" + remoteUrl = URL("https://u2") ), SourceLinkDefinitionImpl( remoteLineSuffix = "ls3", localDirectory = project.file("p3").absolutePath, - remoteUrl = "u3" + remoteUrl = URL("https://u3") ) ), sourceSet.build().sourceLinks, -- cgit