public class TestFile extends Object
Constructor and Description |
---|
TestFile(File file,
Charset charset,
OutputValidator surefireVerifier) |
TestFile(File file,
OutputValidator surefireVerifier) |
Modifier and Type | Method and Description |
---|---|
TestFile |
assertContainsText(String text) |
OutputValidator |
assertFileExists() |
OutputValidator |
assertFileNotExists() |
void |
delete() |
boolean |
exists() |
String |
getAbsolutePath() |
FileInputStream |
getFileInputStream() |
boolean |
isFile() |
String |
readFileToString() |
String |
slurpFile() |
URI |
toURI() |
public TestFile(File file, OutputValidator surefireVerifier)
public TestFile(File file, Charset charset, OutputValidator surefireVerifier)
public OutputValidator assertFileExists()
public OutputValidator assertFileNotExists()
public void delete()
public String getAbsolutePath()
public boolean exists()
public FileInputStream getFileInputStream() throws FileNotFoundException
FileNotFoundException
public String slurpFile()
public String readFileToString()
public boolean isFile()
public URI toURI()
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.