org.codehaus.groovy.grails.support
Class MockFileResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.ByteArrayResource
org.codehaus.groovy.grails.support.MockFileResource
- All Implemented Interfaces:
- InputStreamSource, Resource
public class MockFileResource
- extends ByteArrayResource
A resource that mocks the behavior of a FileResource
- Since:
- 1.1
Created: Feb 6, 2009
- Author:
- Graeme Rocher
MockFileResource
public MockFileResource(String fileName,
String contents)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
MockFileResource
public MockFileResource(String fileName,
String contents,
String encoding)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getFilename
public String getFilename()
throws IllegalStateException
- Specified by:
getFilename
in interface Resource
- Overrides:
getFilename
in class AbstractResource
- Throws:
IllegalStateException
Copyright (c) 2005-2009 The Grails project