public class MockStringResourceLoader extends MockResourceLoader
| Constructor and Description |
|---|
MockStringResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
getResource(java.lang.String location) |
void |
registerMockResource(java.lang.String location,
byte[] contents)
Registers a mock resource with the first argument as the location and the second as the contents
of the resource.
|
void |
registerMockResource(java.lang.String location,
org.springframework.core.io.Resource res)
Registers a mock resource with the first argument as the location and the second as the contents
of the resource.
|
void |
registerMockResource(java.lang.String location,
java.lang.String contents)
Registers a mock resource with the first argument as the location and the second as the contents
of the resource.
|
public org.springframework.core.io.Resource getResource(java.lang.String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class MockResourceLoaderpublic void registerMockResource(java.lang.String location,
org.springframework.core.io.Resource res)
location - The locationres - The resource itselfpublic void registerMockResource(java.lang.String location,
java.lang.String contents)
location - The locationcontents - The contents of the resourcepublic void registerMockResource(java.lang.String location,
byte[] contents)
location - The locationcontents - The contents of the resource