org.apache.sling.testing.resourceresolver
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
| Fields inherited from interface org.apache.sling.api.resource.Resource |
RESOURCE_TYPE_NON_EXISTING |
| Methods inherited from class org.apache.sling.api.resource.AbstractResource |
getChild, getChildren, getName, getParent, hasChildren, isResourceType, listChildren |
| Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable |
setAdapterManager, unsetAdapterManager |
MockResource
public MockResource(String path,
Map<String,Object> props,
org.apache.sling.api.resource.ResourceResolver resolver)
getPath
public String getPath()
getResourceType
public String getResourceType()
getResourceSuperType
public String getResourceSuperType()
getResourceMetadata
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
getResourceResolver
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
adaptTo
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
- Specified by:
adaptTo in interface org.apache.sling.api.adapter.Adaptable- Overrides:
adaptTo in class org.apache.sling.api.adapter.SlingAdaptable
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.