| java.lang.Object com.canoo.webtest.boundary.FileBoundary
FileBoundary | final public class FileBoundary (Code) | | Helper class for working with files.
author: Paul King author: Marc Guillemot |
getBytes | public static byte[] getBytes(File file)(Code) | | Gets the bytes of the file
Parameters: file - the file to read the file content throws: RuntimeException - if the content can't be read |
getFile | public static File getFile(String filename, Class relativeClass)(Code) | | Helper method when creating files.
Parameters: filename - the filename of the resource to get Parameters: relativeClass - the class whose package contains the resource the File if it exists throws: java.lang.IllegalStateException - if the file could not be found |
|
|