Skip to content

Commit

Permalink
Avoid Java 11-only method
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Mar 31, 2020
1 parent 4b2d27b commit b3ec027
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class TapiroSuite extends munit.FunSuite {
FileLayout.mapFromString(expectedLayout).map {
case (path, content) =>
val filePath = path.split("/").foldLeft(projectRoot)(_.resolve(_))
assertNoDiff(Files.readString(filePath.toNIO), content)
assertNoDiff(new String(Files.readAllBytes(filePath.toNIO)), content)
}

}
Expand Down

0 comments on commit b3ec027

Please sign in to comment.