org.apache.sling.commons.testing.sling
Class MockResource
java.lang.Object
org.apache.sling.api.resource.SyntheticResource
org.apache.sling.commons.testing.sling.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.SyntheticResource
| Fields inherited from interface org.apache.sling.api.resource.Resource |
RESOURCE_TYPE_NON_EXISTING |
|
Constructor Summary |
MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
java.lang.String path,
java.lang.String resourceType)
|
MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
java.lang.String path,
java.lang.String resourceType,
java.lang.String resourceSuperType)
|
| Methods inherited from class org.apache.sling.api.resource.SyntheticResource |
adaptTo, getPath, getResourceMetadata, getResourceResolver, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MockResource
public MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
java.lang.String path,
java.lang.String resourceType)
MockResource
public MockResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
java.lang.String path,
java.lang.String resourceType,
java.lang.String resourceSuperType)
getResourceType
public java.lang.String getResourceType()
- Specified by:
getResourceType in interface org.apache.sling.api.resource.Resource- Overrides:
getResourceType in class org.apache.sling.api.resource.SyntheticResource
setResourceType
public void setResourceType(java.lang.String resourceType)
- Overrides:
setResourceType in class org.apache.sling.api.resource.SyntheticResource
getResourceSuperType
public java.lang.String getResourceSuperType()
- Specified by:
getResourceSuperType in interface org.apache.sling.api.resource.Resource- Overrides:
getResourceSuperType in class org.apache.sling.api.resource.SyntheticResource
setResourceSuperType
public void setResourceSuperType(java.lang.String resourceSuperType)
Copyright © 2007-2008 The Apache Software Foundation. All Rights Reserved.