public class MockStringResourceLoader extends MockResourceLoader
Constructor and Description |
---|
MockStringResourceLoader() |
Modifier and Type | Method and Description |
---|---|
Resource |
getResource(java.lang.String location) |
void |
registerMockResource(java.lang.String location,
Resource res)
Registers a mock resource with the first argument as the location and the second as the contents
of the resource.
|
public Resource getResource(java.lang.String location)
getResource
in class MockResourceLoader
public void registerMockResource(java.lang.String location, Resource res)
location
- The locationres
- The resource itself