# Index

A C D F G H I L M N O P Q R S T
All Classes and Interfaces|All Packages

## A

adaptTo(ResolveContext<Void>, Class<AdapterType>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider
adaptTo(Class<AdapterType>) - Method in class org.apache.sling.testing.resourceresolver.MockResource
add() - Method in class org.apache.sling.testing.resourceresolver.MockHelper
  Finish building and add all resources to the resource tree.
addChanged(String, Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
addFindResourceHandler(ResourceResolver, MockFindResourcesHandler) - Static method in class org.apache.sling.testing.resourceresolver.MockFindQueryResources
  Adds a handler that can provide a mocked find resources result.
addFindResourceHandler(MockFindResourcesHandler) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
  Deprecated.
  Please use `MockFindQueryResources.addFindResourceHandler(ResourceResolver, MockFindResourcesHandler)`
addFindResourceHandler(MockFindResourcesHandler) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
addQueryResourceHandler(ResourceResolver, MockQueryResourceHandler) - Static method in class org.apache.sling.testing.resourceresolver.MockFindQueryResources
  Adds a handler that can provide a mocked query resources result.
addQueryResourceHandler(MockQueryResourceHandler) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
  Deprecated.
  Please use `MockFindQueryResources.addQueryResourceHandler(ResourceResolver, MockQueryResourceHandler)`
addQueryResourceHandlerInternal(MockQueryResourceHandler) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions

## C

clear() - Method in class org.apache.sling.testing.resourceresolver.MockValueMap
clone(Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
close() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
closed(ResourceResolver) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
  Inform about a closed resource resolver.
commit() - Method in class org.apache.sling.testing.resourceresolver.MockHelper
  Finish building, add all resources to the resource tree and commit changes.
commit() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
commit(ResolveContext<Void>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider
copy(String, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
create(Resource, String, Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
create(ResourceResolver) - Static method in class org.apache.sling.testing.resourceresolver.MockHelper
  Create a new helper
create(ResolveContext<Void>, String, Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider

## D

DefaultMockResourceFactory - Class in org.apache.sling.testing.resourceresolver
  Default factory implementation that always returns a MockResource object
DefaultMockResourceFactory() - Constructor for class org.apache.sling.testing.resourceresolver.DefaultMockResourceFactory
delete(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
delete(ResolveContext<Void>, Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider

## F

findResources(String, String) - Method in interface org.apache.sling.testing.resourceresolver.MockFindResourcesHandler
findResources(String, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver

## G

get(String, Class<T>) - Method in class org.apache.sling.testing.resourceresolver.MockValueMap
getAdministrativeResourceResolver(Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
getAttribute(String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getAttributeNames() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getChildren(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getEventAdmin() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
getFindResourcesHandlers() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
getMockResourceFactory() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
getParent(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getParentResourceType(String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getParentResourceType(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getPath() - Method in class org.apache.sling.testing.resourceresolver.MockResource
getPropertyMap() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getQueryLanguageProvider() - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider
getQueryResourcesHandlers() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
getResource(String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getResource(ResolveContext<Void>, String, ResourceContext, Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider
getResource(Resource, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getResourceMetadata() - Method in class org.apache.sling.testing.resourceresolver.MockResource
getResourceResolver() - Method in class org.apache.sling.testing.resourceresolver.MockResource
getResourceResolver(Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
getResourceSuperType() - Method in class org.apache.sling.testing.resourceresolver.MockResource
getResourceType() - Method in class org.apache.sling.testing.resourceresolver.MockResource
getSearchPath() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getSearchPath() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
getSearchPaths() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
getServiceResourceResolver(Map<String, Object>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
getThreadResourceResolver() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
getUserID() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
getValueMap() - Method in class org.apache.sling.testing.resourceresolver.MockResource

## H

hasChanges() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
hasChanges(ResolveContext<Void>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider
hasChildren(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver

## I

isLive() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
isMangleNamespacePrefixes() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
isResourceType(Resource, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver

## L

listChildren(Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
listChildren(ResolveContext<Void>, Resource) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider

## M

map(HttpServletRequest, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
map(String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
map(HttpServletRequest, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
  Deprecated.
  use `MockResourceResolver.map(jakarta.servlet.http.HttpServletRequest, String)` instead
MockFindQueryResources - Class in org.apache.sling.testing.resourceresolver
  Allows to provide mocked search result for queries via `ResourceResolver`.
MockFindResourcesHandler - Interface in org.apache.sling.testing.resourceresolver
  Can provide a result when finding resources using a certain query/language.
MockHelper - Class in org.apache.sling.testing.resourceresolver
  Helper class to create resources: MockHelper.create(resolver).resource("/libs").p("prop", "value") .resource("sub").p("sub", "hello") .resource(".sameLevel") .resource("/apps").p("foo", "baa").commit()
MockQueryResourceHandler - Interface in org.apache.sling.testing.resourceresolver
  Can provide a result when querying for resources using a certain query/language.
MockResource - Class in org.apache.sling.testing.resourceresolver
MockResource(String, Map<String, Object>, ResourceResolver) - Constructor for class org.apache.sling.testing.resourceresolver.MockResource
MockResourceFactory - Interface in org.apache.sling.testing.resourceresolver
  Implement this interface to customize how MockResource objects are created by the MockResourceResolver
MockResourceProvider - Class in org.apache.sling.testing.resourceresolver
  This is a wrapper around `MockResourceResolver` to act as resource provider.
MockResourceProvider() - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceProvider
MockResourceResolver - Class in org.apache.sling.testing.resourceresolver
MockResourceResolver(MockResourceResolverFactoryOptions, MockResourceResolverFactory, Map<String, Map<String, Object>>) - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolver
MockResourceResolver(MockResourceResolverFactoryOptions, MockResourceResolverFactory, Map<String, Map<String, Object>>, Map<String, Object>) - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolver
MockResourceResolverFactory - Class in org.apache.sling.testing.resourceresolver
  Simple resource resolver factory
MockResourceResolverFactory() - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
  Create a new resource resolver factory.
MockResourceResolverFactory(MockResourceResolverFactoryOptions) - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
  Create a new resource resolver factory.
MockResourceResolverFactory(EventAdmin) - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
  Create a new resource resolver factory
MockResourceResolverFactoryOptions - Class in org.apache.sling.testing.resourceresolver
  Options for the factory
MockResourceResolverFactoryOptions() - Constructor for class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
MockValueMap - Class in org.apache.sling.testing.resourceresolver
  ValueMap for mocked resources to mimick JCR-like behavior.
MockValueMap(Resource) - Constructor for class org.apache.sling.testing.resourceresolver.MockValueMap
MockValueMap(Resource, Map<String, Object>) - Constructor for class org.apache.sling.testing.resourceresolver.MockValueMap
move(String, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver

## N

newMockResource(String, Map<String, Object>, ResourceResolver) - Method in class org.apache.sling.testing.resourceresolver.DefaultMockResourceFactory
newMockResource(String, Map<String, Object>, ResourceResolver) - Method in interface org.apache.sling.testing.resourceresolver.MockResourceFactory

## O

orderBefore(Resource, String, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
org.apache.sling.testing.resourceresolver - package org.apache.sling.testing.resourceresolver
  Apache Sling Testing Resource Resolver Mock

## P

p(String, Object) - Method in class org.apache.sling.testing.resourceresolver.MockHelper
  Add a property to the current resource
put(String, Object) - Method in class org.apache.sling.testing.resourceresolver.MockValueMap
putAll(Map<? extends String, ?>) - Method in class org.apache.sling.testing.resourceresolver.MockValueMap

## Q

queryResources(String, String) - Method in interface org.apache.sling.testing.resourceresolver.MockQueryResourceHandler
queryResources(String, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver

## R

refresh() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
remove(Object) - Method in class org.apache.sling.testing.resourceresolver.MockValueMap
resolve(HttpServletRequest, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
resolve(String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
resolve(HttpServletRequest) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
  Deprecated.
  as of ResourceResolver 2.0.4, use `MockResourceResolver.resolve(HttpServletRequest, String)` instead.
resolve(HttpServletRequest, String) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
  Deprecated.
  use `MockResourceResolver.resolve(jakarta.servlet.http.HttpServletRequest, String)` instead
resource(String) - Method in class org.apache.sling.testing.resourceresolver.MockHelper
  Add a new resource.
revert() - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolver
revert(ResolveContext<Void>) - Method in class org.apache.sling.testing.resourceresolver.MockResourceProvider

## S

setEventAdmin(EventAdmin) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
setMangleNamespacePrefixes(boolean) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
setMockResourceFactory(MockResourceFactory) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions
setSearchPaths(String[]) - Method in class org.apache.sling.testing.resourceresolver.MockResourceResolverFactoryOptions

## T

toString() - Method in class org.apache.sling.testing.resourceresolver.MockResource

A C D F G H I L M N O P Q R S T
All Classes and Interfaces|All Packages