|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.sling.commons.testing.sling.MockResourceResolver
com.scit.sling.test.MockResourceResolver
public class MockResourceResolver
| Field Summary |
|---|
| Fields inherited from interface org.apache.sling.api.resource.ResourceResolver |
|---|
PROPERTY_RESOURCE_TYPE, REQUEST_ATTR_WORKSPACE_INFO, USER_IMPERSONATOR |
| Constructor Summary | |
|---|---|
MockResourceResolver()
|
|
| Method Summary | ||
|---|---|---|
|
adaptTo(Class<AdapterType> type)
|
|
MockAdapter |
getMockAdaptable()
|
|
String[] |
getSearchPath()
|
|
boolean |
isResourceType(org.apache.sling.api.resource.Resource resource,
String s)
Best effort implementation to check on resource type/superType |
|
| Methods inherited from class org.apache.sling.commons.testing.sling.MockResourceResolver |
|---|
addChildren, addResource, clone, close, findResources, getAttribute, getAttributeNames, getResource, getResource, getUserID, isLive, listChildren, map, map, queryResources, resolve, resolve, resolve, setSearchPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.sling.api.resource.ResourceResolver |
|---|
commit, create, delete, getChildren, getParentResourceType, getParentResourceType, hasChanges, refresh, revert |
| Constructor Detail |
|---|
public MockResourceResolver()
| Method Detail |
|---|
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.commons.testing.sling.MockResourceResolverpublic MockAdapter getMockAdaptable()
public String[] getSearchPath()
getSearchPath in interface org.apache.sling.api.resource.ResourceResolvergetSearchPath in class org.apache.sling.commons.testing.sling.MockResourceResolver
public boolean isResourceType(org.apache.sling.api.resource.Resource resource,
String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||