public class MockFileResource extends ByteArrayResource
Mocks the behavior of a FileResource.
| Constructor and description |
|---|
MockFileResource(String fileName, String contents) |
MockFileResource(String fileName, String contents, String encoding) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getFilename() |
| Methods inherited from class | Name |
|---|---|
class ByteArrayResource |
contentLength, createRelative, equals, exists, getByteArray, getClass, getContentAsByteArray, getContentAsString, getDescription, getFile, getFilename, getInputStream, getURI, getURL, hashCode, isFile, isOpen, isReadable, lastModified, notify, notifyAll, readableChannel, toString, wait, wait, wait |