public class MockFileResource extends ByteArrayResource
Mocks the behavior of a FileResource.
| Constructor and description |
|---|
MockFileResource(java.lang.String fileName, java.lang.String contents) |
MockFileResource(java.lang.String fileName, java.lang.String contents, java.lang.String encoding) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.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 |