Class MockResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.testing.resourceresolver.MockResource
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable,org.apache.sling.api.resource.Resource
public class MockResource
extends org.apache.sling.api.resource.AbstractResource
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Constructor Summary
ConstructorsConstructorDescriptionMockResource(String path, Map<String, Object> props, org.apache.sling.api.resource.ResourceResolver resolver) -
Method Summary
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, hasChildren, isResourceType, listChildrenMethods inherited from class org.apache.sling.api.adapter.SlingAdaptable
setAdapterManager, unsetAdapterManager
-
Constructor Details
-
MockResource
-
-
Method Details
-
getPath
-
getResourceType
-
getResourceSuperType
-
getResourceMetadata
@NotNull public @NotNull org.apache.sling.api.resource.ResourceMetadata getResourceMetadata() -
getResourceResolver
@NotNull public @NotNull org.apache.sling.api.resource.ResourceResolver getResourceResolver() -
adaptTo
- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.apache.sling.api.adapter.SlingAdaptable
-
getValueMap
public org.apache.sling.api.resource.ValueMap getValueMap()- Specified by:
getValueMapin interfaceorg.apache.sling.api.resource.Resource- Overrides:
getValueMapin classorg.apache.sling.api.resource.AbstractResource
-
toString
-