diff --git a/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala b/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala index b38343cd..075af74c 100644 --- a/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala +++ b/compiler/src/test/scala/play/twirl/compiler/test/CompilerSpec.scala @@ -107,7 +107,7 @@ class CompilerSpec extends AnyWordSpec with Matchers { val helper = newCompilerHelper val result = helper .compile[((java.io.File, java.net.URL) => Html)]("argImports.scala.html", "html.argImports") - .static(new java.io.File("example"), new java.net.URL("http://example.org")) + .static(new java.io.File("example"), new java.net.URI("http://example.org").toURL) .toString .trim result must be("

file: example, url: http://example.org

")