Skip to content

Commit ec8d030

Browse files
author
Michał Wiącek
committed
properly get path to resource
1 parent 19362c4 commit ec8d030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/test/resources/resources-test-project/src/test/scala/ResourcesTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import munit.FunSuite
44
class ResourcesTest extends FunSuite {
55

66
test("resources") {
7-
val p: Path = Paths.get(getClass.getResource("test.txt").getPath)
7+
val p: Path = Paths.get(getClass.getResource("test.txt").toURI)
88
assert(Files.exists(p))
99
}
1010

0 commit comments

Comments
 (0)