public class MockStringResourceLoader extends MockResourceLoader
Loads Resources from Strings that are registered as Mock resources.
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | public org.springframework.core.io.Resource | getResource(java.lang.String location) | 
|  | public 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. | 
|  | public 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 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. | 
| Methods inherited from class | Name | 
|---|---|
| class MockResourceLoader | getResource | 
Registers a mock resource with the first argument as the location and the second as the contents of the resource.
location -  The locationres -  The resource itselfRegisters a mock resource with the first argument as the location and the second as the contents of the resource.
location -  The locationcontents -  The contents of the resourceRegisters a mock resource with the first argument as the location and the second as the contents of the resource.
location -  The locationcontents -  The contents of the resource