com.scit.sling.test
Class MockResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.api.resource.SyntheticResource
org.apache.sling.commons.testing.sling.MockResource
com.scit.sling.test.MockResource
- All Implemented Interfaces:
- org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource
public class MockResource
- extends org.apache.sling.commons.testing.sling.MockResource
An mock Resource
that can be adapted to ValueMap
and possibly other adaptables.
Fields inherited from interface org.apache.sling.api.resource.Resource |
RESOURCE_TYPE_NON_EXISTING |
Methods inherited from class org.apache.sling.commons.testing.sling.MockResource |
addProperty, getProperties, getResourceSuperType, getResourceType, setResourceSuperType, setResourceType |
Methods inherited from class org.apache.sling.api.resource.SyntheticResource |
getPath, getResourceMetadata, getResourceResolver, toString |
Methods inherited from class org.apache.sling.api.resource.AbstractResource |
getChild, getChildren, getName, getParent, isResourceType, listChildren |
Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable |
setAdapterManager, unsetAdapterManager |
MockResource
public MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path,
String resourceType,
String resourceSuperType)
MockResource
public MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path,
String resourceType)
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.commons.testing.sling.MockResource
getMockAdaptable
public MockAdapter getMockAdaptable()
Copyright © 2013 Southern Cross IT. All rights reserved.