Last updated 5 years ago
Was this helpful?
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; @Test public void readFileIntoString() throws IOException { String content = Files.readString(Paths.get("[FILE_NAME]")); assertNotNull(content); }