public class FileTestUtils
extends java.lang.Object
Constructor and Description |
---|
FileTestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
assertFileContent(java.nio.file.Path dir,
java.lang.String filename,
java.lang.String expected)
Check that a file contains a given String
|
public static void assertFileContent(java.nio.file.Path dir, java.lang.String filename, java.lang.String expected) throws java.io.IOException
dir
- root dir for filefilename
- relative path from root dir to fileexpected
- expected content (if null, we don't expect any file)java.io.IOException