From b3ec0277bc9285b58d8f69e6ef9b384199a57c3a Mon Sep 17 00:00:00 2001 From: Gabriele Petronella Date: Fri, 27 Mar 2020 17:13:36 +0100 Subject: [PATCH] Avoid Java 11-only method --- tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala b/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala index d4b976f7..796a7b51 100644 --- a/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala +++ b/tapiro/core/src/test/scala/io/buildo/tapiro/TapiroSuite.scala @@ -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) } }