Class DefaultMockResourceFactory
java.lang.Object
org.apache.sling.testing.resourceresolver.DefaultMockResourceFactory
- All Implemented Interfaces:
MockResourceFactory
Default factory implementation that always returns a MockResource
object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.api.resource.Resource
newMockResource
(String path, Map<String, Object> properties, org.apache.sling.api.resource.ResourceResolver resolver)
-
Constructor Details
-
DefaultMockResourceFactory
public DefaultMockResourceFactory()
-
-
Method Details
-
newMockResource
public org.apache.sling.api.resource.Resource newMockResource(String path, Map<String, Object> properties, org.apache.sling.api.resource.ResourceResolver resolver) - Specified by:
newMockResource
in interfaceMockResourceFactory
-