# Index

A B C D E F G H I J K L M N O P R S T U V
All Classes and Interfaces|All Packages

## A

activate(ComponentContext) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
addModelsForClasses(Class...) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Search classpath for given class names to scan for and register all classes with @Model annotation.
addModelsForClasses(String...) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Search classpath for given class names to scan for and register all classes with @Model annotation.
addModelsForPackage(String) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Search classpath for given java package names (and sub packages) to scan for and register all classes with @Model annotation.
addModelsForPackage(String...) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Search classpath for given java package names (and sub packages) to scan for and register all classes with @Model annotation.
apps() - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Gets (and creates if required) a unique path at `/apps/xxx`.

## B

binaryFile(InputStream, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryFile(InputStream, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryFile(InputStream, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryFile(InputStream, Resource, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryFile(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryFile(String, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:file binary node into repository.
binaryResource(InputStream, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
binaryResource(InputStream, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
binaryResource(InputStream, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
binaryResource(InputStream, Resource, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
binaryResource(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
binaryResource(String, String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import binary file as nt:resource binary node into repository.
bindAdapterFactory(AdapterFactory, ServiceReference<AdapterFactory>) - Method in class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
  Bind a new adapter factory.
build() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap.Builder
  Returns a newly-created immutable map.
build() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Creates a `ResourceBuilder` object for easily creating test content.
builder() - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns a new builder.
Builder() - Constructor for class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap.Builder

## C

check(ProtectionContext, String) - Method in class org.apache.sling.testing.mock.sling.MockXSSFilter
cleanUp() - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Cleanup is called when the unit test rule completes a unit test run.
clear() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Deprecated.
  Unsupported operation
clearAdapterManagerBundleContext() - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Clear adapter registrations..
containsKey(Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
containsValue(Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
content() - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Gets (and creates if required) a unique path at `/content/xxx`.
contentBuilder - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Content builder
ContentBuilder - Class in org.apache.sling.testing.mock.sling.builder
  Helper class for building test content in the resource hierarchy with as less boilerplate code as possible.
ContentBuilder(ResourceResolver) - Constructor for class org.apache.sling.testing.mock.sling.builder.ContentBuilder
contentLoader - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Content loader
ContentLoader - Class in org.apache.sling.testing.mock.sling.loader
  Imports JSON data and binary data into Sling resource hierarchy.
ContentLoader(ResourceResolver) - Constructor for class org.apache.sling.testing.mock.sling.loader.ContentLoader
ContentLoader(ResourceResolver, BundleContext) - Constructor for class org.apache.sling.testing.mock.sling.loader.ContentLoader
ContentLoader(ResourceResolver, BundleContext, boolean) - Constructor for class org.apache.sling.testing.mock.sling.loader.ContentLoader
ContentLoader(ResourceResolver, BundleContext, boolean, ResourceResolverType) - Constructor for class org.apache.sling.testing.mock.sling.loader.ContentLoader
contentLoaderAutoCommit - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Content loader with auto commit after loading content
copyOf(Map<String, Object>) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing the same entries as `map`.
create() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Creates a `ContentBuilder` object for easily creating test content.
currentResource() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
currentResource(String) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Set current resource in request.
currentResource(Resource) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Set current resource in request.

## D

DEFAULT_RESOURCERESOLVER_TYPE - Static variable in class org.apache.sling.testing.mock.sling.MockSling
  Default resource resolver type is `ResourceResolverType.RESOURCERESOLVER_MOCK`.
deleteResources(Resource...) - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Deletes the given set of resources and commits afterwards.
dispose() - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper

## E

ensureResourceExists(String) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Ensure that a resource exists at the given path.
entrySet() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
equals(Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap

## F

fileVaultXml(InputStream, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of FileVault XML file into repository.
fileVaultXml(InputStream, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of FileVault XML file into repository.
fileVaultXml(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of FileVault XML file into repository.
fileVaultXml(String, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of FileVault XML file into repository.
filter(String) - Method in class org.apache.sling.testing.mock.sling.MockXSSFilter
filter(ProtectionContext, String) - Method in class org.apache.sling.testing.mock.sling.MockXSSFilter
folderFileVaultXml(File, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder containing content in FileVault XML format in repository.
folderFileVaultXml(File, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder containing content in FileVault XML format in repository.
folderFileVaultXml(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder (file system) containing content in FileVault XML format in repository.
folderFileVaultXml(String, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder (file system) containing content in FileVault XML format in repository.
folderJson(File, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder containing content in JSON (Sling-Initial-Content) format in repository.
folderJson(File, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder containing content in JSON (Sling-Initial-Content) format in repository.
folderJson(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder (file system) containing content in JSON (Sling-Initial-Content) format in repository.
folderJson(String, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Mount a folder (file system) containing content in JSON (Sling-Initial-Content) format in repository.
forward(String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
forward(String, String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
forward(String, RequestDispatcherOptions) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
forward(Resource) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
forward(Resource, String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
forward(Resource, RequestDispatcherOptions) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper

## G

get() - Static method in class org.apache.sling.testing.mock.sling.NodeTypeDefinitionScanner
get(String, Class<T>) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
get(String, T) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
get(Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
getAbsolutePathWithinSlingHome(String) - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getAdapter(Object, Class<AdapterType>) - Method in class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
  Returns the adapted `adaptable` or `null` if the object cannot be adapted.
getBaseName() - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
getBestRunModeMatchCountFromSpec(String) - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getDefaultLocale() - Method in class org.apache.sling.testing.mock.sling.MockResourceBundleProvider
getDefaultWorkspace() - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
getDescriptor(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
getDescriptorKeys() - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
getDescriptorValue(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
getDescriptorValues(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
getExtension(String) - Method in class org.apache.sling.testing.mock.sling.services.MockMimeTypeService
getKeys() - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
getLocale() - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
getMimeType(String) - Method in class org.apache.sling.testing.mock.sling.services.MockMimeTypeService
getNodeTypeDefinitions() - Method in class org.apache.sling.testing.mock.sling.NodeTypeDefinitionScanner
getNodeTypeMode() - Method in enum org.apache.sling.testing.mock.sling.ResourceResolverType
getOrCreateResource(String, String) - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Get or create resource with given JCR primary type
getRequest() - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
getResourceBundle(String, Locale) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundleProvider
getResourceBundle(String, Locale) - Method in class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
getResourceBundle(Locale) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundleProvider
getResponse() - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
getRunModes() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getScript() - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
getService(Class<ServiceType>) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
getServices(Class<ServiceType>, String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
getSlingDescription() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getSlingHome() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getSlingHomePath() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getSlingId() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
getSlingName() - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService

## H

handleGetObject(String) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
hashCode() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap

## I

ImmutableValueMap - Class in org.apache.sling.testing.mock.sling.builder
  `ValueMap` that does not support changing its content.
ImmutableValueMap.Builder - Class in org.apache.sling.testing.mock.sling.builder
  Builder interface for `ImmutableValueMap`.
impersonateFromService(String, Credentials, String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
include(String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
include(String, String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
include(String, RequestDispatcherOptions) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
include(Resource) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
include(Resource, String) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
include(Resource, RequestDispatcherOptions) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
isEmpty() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
isSingleValueDescriptor(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
isStandardDescriptor(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
isValidHref(String) - Method in class org.apache.sling.testing.mock.sling.MockXSSFilter

## J

JCR_MOCK - Enum constant in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Uses a simple JCR "in-memory" mock as underlying repository.
JCR_OAK - Enum constant in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Uses a real JCR Jackrabbit Oak repository.
json(InputStream, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of JSON file into repository.
json(InputStream, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of JSON file into repository.
json(String, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of JSON file into repository.
json(String, Resource, String) - Method in class org.apache.sling.testing.mock.sling.loader.ContentLoader
  Import content of JSON file into repository.

## K

keySet() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
keySet() - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle

## L

libs() - Method in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Gets (and creates if required) a unique path at `/libs/xxx`.
load() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
load(boolean) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
login() - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
login(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
login(Credentials) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
login(Credentials, String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
loginAdministrative(String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
loginService(String, String) - Method in class org.apache.sling.testing.mock.sling.MockJcrSlingRepository

## M

MockAdapterManagerImpl - Class in org.apache.sling.testing.mock.sling
  This is a copy of org.apache.sling.adapter.internal.AdpaterManagerImpl from Sling Adapter 2.2.0, with all calls to SlingAdaptable.setAdapterManager/unsetAdapterManager disabled, because this would break the `ThreadsafeMockAdapterManagerWrapper` concept.
MockAdapterManagerImpl() - Constructor for class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
MockHttpSession - Class in org.apache.sling.testing.mock.sling.servlet
  Mock `HttpSession` implementation.
MockHttpSession() - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockHttpSession
MockJcrSlingRepository - Class in org.apache.sling.testing.mock.sling
  Mock `SlingRepository` implementation.
MockJcrSlingRepository() - Constructor for class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
MockMimeTypeService - Class in org.apache.sling.testing.mock.sling.services
  Mock `MimeTypeService` implementation.
MockMimeTypeService() - Constructor for class org.apache.sling.testing.mock.sling.services.MockMimeTypeService
MockRequestDispatcherFactory - Interface in org.apache.sling.testing.mock.sling.servlet
  Interface to create a mock `RequestDispatcher` when calling the getRequestDispatcher methods on `MockSlingHttpServletRequest` instances.
MockRequestPathInfo - Class in org.apache.sling.testing.mock.sling.servlet
  Mock `RequestPathInfo` implementation.
MockRequestPathInfo() - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockRequestPathInfo
  Deprecated.
  Use @link `MockRequestPathInfo(ResourceResolver)` instead.
MockRequestPathInfo(ResourceResolver) - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockRequestPathInfo
MockResourceBundle - Class in org.apache.sling.testing.mock.sling
  Mock implementation of an i18n `ResourceBundle`.
MockResourceBundle(String, Locale) - Constructor for class org.apache.sling.testing.mock.sling.MockResourceBundle
MockResourceBundleProvider - Class in org.apache.sling.testing.mock.sling
  Mock implementation of @link `ResourceBundleProvider` then ensures resolving i18n keys does not lead to exceptions.
MockResourceBundleProvider() - Constructor for class org.apache.sling.testing.mock.sling.MockResourceBundleProvider
MockServletContext - Class in org.apache.sling.testing.mock.sling.servlet
  Mock `ServletContext` implementation.
MockServletContext() - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockServletContext
MockSling - Class in org.apache.sling.testing.mock.sling
  Factory for mock Sling objects.
MockSlingHttpServletRequest - Class in org.apache.sling.testing.mock.sling.servlet
  Mock `SlingHttpServletRequest` implementation.
MockSlingHttpServletRequest(ResourceResolver, BundleContext) - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
MockSlingHttpServletRequest(BundleContext) - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
  Instantiate with default resource resolver
MockSlingHttpServletResponse - Class in org.apache.sling.testing.mock.sling.servlet
  Mock `SlingHttpServletResponse` implementation.
MockSlingHttpServletResponse() - Constructor for class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletResponse
MockSlingScriptHelper - Class in org.apache.sling.testing.mock.sling
  Mock `SlingScriptHelper` implementation.
MockSlingScriptHelper(SlingHttpServletRequest, SlingHttpServletResponse, BundleContext) - Constructor for class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
MockSlingSettingService - Class in org.apache.sling.testing.mock.sling.services
  Mock implementation of `SlingSettingsService`.
MockSlingSettingService() - Constructor for class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
  Instantiate with no default run modes.
MockSlingSettingService(Set<String>) - Constructor for class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
  Instantiate with given run modes
MockXSSFilter - Class in org.apache.sling.testing.mock.sling
  Mock implementation of `XSSFilter` that just accepts anything.
MockXSSFilter() - Constructor for class org.apache.sling.testing.mock.sling.MockXSSFilter

## N

NAMESPACES_ONLY - Enum constant in enum org.apache.sling.testing.mock.sling.NodeTypeMode
  Namespaces have to be registered, but nodetypes are not supported.
newMockHttpSession() - Method in class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
newMockRequestPathInfo() - Method in class org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
newMockServletContext() - Method in class org.apache.sling.testing.mock.sling.servlet.MockHttpSession
newResourceResolver(ResourceResolverType, BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates new sling resource resolver instance.
newResourceResolver(BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates new sling resource resolver instance using `MockSling.DEFAULT_RESOURCERESOLVER_TYPE`.
newResourceResolverFactory() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Initialize mocked resource resolver factory.
newResourceResolverFactory() - Method in interface org.apache.sling.testing.mock.sling.spi.ResourceResolverTypeAdapter
  Gets resource resolver factory instance.
newResourceResolverFactory(ResourceResolverType, BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates new sling resource resolver factory instance.
newResourceResolverFactory(BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates new sling resource resolver factory instance.
newSlingRepository() - Method in interface org.apache.sling.testing.mock.sling.spi.ResourceResolverTypeAdapter
  Get SlingRepository instance.
newSlingRepositoryFromSnapshot(Object) - Method in interface org.apache.sling.testing.mock.sling.spi.ResourceResolverTypeAdapter
  Get a SlingRepository instance based on a snapshot taken from another repository.
newSlingScriptHelper(SlingHttpServletRequest, SlingHttpServletResponse, BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates a new sling script helper instance.
newSlingScriptHelper(BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Creates a new sling script helper instance using `MockSling.DEFAULT_RESOURCERESOLVER_TYPE` for the resource resolver.
NodeTypeDefinitionScanner - Class in org.apache.sling.testing.mock.sling
  Singleton class that fetches all node type definitions from OSGi bundle MANIFEST.MF files with "Sling-Nodetypes" definitions in the classpath.
NodeTypeMode - Enum in org.apache.sling.testing.mock.sling
  How to handle node types for different `ResourceResolverType` types.
NODETYPES_REQUIRED - Enum constant in enum org.apache.sling.testing.mock.sling.NodeTypeMode
  Nodetypes including namespaces have to be registered.
NONE - Enum constant in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Provides resource resolver environment without any ResourceProvider.
NOT_SUPPORTED - Enum constant in enum org.apache.sling.testing.mock.sling.NodeTypeMode
  Neither registration of namespaces or node types required (no underlying JCR).

## O

of() - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns the empty map.
of(String, Object) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing a single entry.
of(String, Object, String, Object) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing the given entries, in order.
of(String, Object, String, Object, String, Object) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing the given entries, in order.
of(String, Object, String, Object, String, Object, String, Object) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing the given entries, in order.
of(String, Object, String, Object, String, Object, String, Object, String, Object) - Static method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Returns an immutable map containing the given entries, in order.
org.apache.sling.testing.mock.sling - package org.apache.sling.testing.mock.sling
  Mock implementation of selected Sling APIs.
org.apache.sling.testing.mock.sling.builder - package org.apache.sling.testing.mock.sling.builder
  Content builder for creating test content.
org.apache.sling.testing.mock.sling.context - package org.apache.sling.testing.mock.sling.context
  Sling context implementation for unit tests.
org.apache.sling.testing.mock.sling.loader - package org.apache.sling.testing.mock.sling.loader
  Helpers for importing test content into the mocked repositories / resource hierarchies.
org.apache.sling.testing.mock.sling.services - package org.apache.sling.testing.mock.sling.services
  Mocks for selected Sling services.
org.apache.sling.testing.mock.sling.servlet - package org.apache.sling.testing.mock.sling.servlet
  Mock implementation of selected Servlet-related Sling APIs.
org.apache.sling.testing.mock.sling.spi - package org.apache.sling.testing.mock.sling.spi
  SPI for hooking in alternative resource type adapter implementations.

## P

put(String, Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap.Builder
  Associates `key` with `value` in the built map.
put(String, String) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
  Add translation.
put(String, Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Deprecated.
  Unsupported operation
put(Map.Entry<String, Object>) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap.Builder
  Adds the given `entry` to the map, making it immutable if necessary.
putAll(Map<? extends String, ? extends String>) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundle
  Add translations.
putAll(Map<String, Object>) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap.Builder
  Associates all of the given map's keys and values in the built map.
putAll(Map<? extends String, ? extends Object>) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Deprecated.
  Unsupported operation

## R

register(Session, List<String>, NodeTypeMode) - Method in class org.apache.sling.testing.mock.sling.NodeTypeDefinitionScanner
  Registers node types found in classpath in JCR repository.
register(Session, NodeTypeMode) - Method in class org.apache.sling.testing.mock.sling.NodeTypeDefinitionScanner
  Registers node types found in classpath in JCR repository.
registerAdapter(Class<T1>, Class<T2>, Function<T1, T2>) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Create a Sling AdapterFactory on the fly which can adapt from `adaptableClass` to `adapterClass` and delegates the adapter mapping to the given `adaptHandler` function.
registerAdapter(Class<T1>, Class<T2>, T2) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Create a Sling AdapterFactory on the fly which can adapt from `adaptableClass` to `adapterClass` and just returns the given value as result.
registerDefaultServices() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Default services that should be available for every unit test
registerMimeType(InputStream) - Method in class org.apache.sling.testing.mock.sling.services.MockMimeTypeService
registerMimeType(String, String...) - Method in class org.apache.sling.testing.mock.sling.services.MockMimeTypeService
remove(Object) - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
  Deprecated.
  Unsupported operation
request - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Sling request
request() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
requestPathInfo() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
resolveSlingBindingProperty(String) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Deprecated.
  Please use `SlingContextImpl.resolveSlingBindingProperty(String, SlingHttpServletRequest)`
resolveSlingBindingProperty(String, SlingHttpServletRequest) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Dynamically resolve property request for current request `SlingBindings`.
resource(String) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create resource.
resource(String, Object...) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create resource.
resource(String, Map<String, Object>) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create resource.
resource(Resource, String) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create child resource below the given parent resource.
resource(Resource, String, Object...) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create child resource below the given parent resource.
resource(Resource, String, Map<String, Object>) - Method in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Create child resource below the given parent resource.
resourceBuilder - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Resource builder
RESOURCEPROVIDER_MOCK - Enum constant in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Uses Sling "resourceresolver-mock" implementation, no underlying JCR repository.
resourceResolver - Variable in class org.apache.sling.testing.mock.sling.builder.ContentBuilder
  Resource resolver
resourceResolver - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Resource resolver
resourceResolver() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Returns the singleton resource resolver bound to this context.
RESOURCERESOLVER_MOCK - Enum constant in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Uses Sling "resourceresolver-mock" implementation, no underlying JCR repository.
resourceResolverFactory - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Resource resolver factory
resourceResolverType - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Resource resolver type
resourceResolverType() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
ResourceResolverType - Enum in org.apache.sling.testing.mock.sling
  The resource resolver mock implementation supports different underlying repository implementations.
ResourceResolverTypeAdapter - Interface in org.apache.sling.testing.mock.sling.spi
  SPI interface for resource resolver type implementations to provide a mock resource resolver factory.
response - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Sling response
response() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
runMode(String...) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Set current run mode(s).

## S

setAdapterManagerBundleContext(BundleContext) - Static method in class org.apache.sling.testing.mock.sling.MockSling
  Set bundle context for adapter manager.
setDefaultLocale(Locale) - Method in class org.apache.sling.testing.mock.sling.MockResourceBundleProvider
  Sets the default locale.
setRegisterSlingModelsFromClassPath(boolean) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
setResourceResolverFactoryActivatorProps(Map<String, Object>) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
setResourceResolverType(ResourceResolverType) - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
setRunModes(Set<String>) - Method in class org.apache.sling.testing.mock.sling.services.MockSlingSettingService
setScript(SlingScript) - Method in class org.apache.sling.testing.mock.sling.MockSlingScriptHelper
setUp() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Setup actions before test method execution
size() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
SlingContextImpl - Class in org.apache.sling.testing.mock.sling.context
  Defines Sling context objects with lazy initialization.
SlingContextImpl() - Constructor for class org.apache.sling.testing.mock.sling.context.SlingContextImpl
slingScriptHelper - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Sling script helper
slingScriptHelper() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
snapshot(SlingRepository) - Method in interface org.apache.sling.testing.mock.sling.spi.ResourceResolverTypeAdapter
  Make a snapshot of the current state of the given repository, or return null if snapshots are not supported.

## T

tearDown() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Teardown actions after test method execution
toString() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap

## U

unbindAdapterFactory(ServiceReference<AdapterFactory>) - Method in class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
  Unbind a adapter factory.
uniquePathPart - Variable in class org.apache.sling.testing.mock.sling.context.UniqueRoot
  Unique path part
uniqueRoot - Variable in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Unique root helper
uniqueRoot() - Method in class org.apache.sling.testing.mock.sling.context.SlingContextImpl
  Create unique root paths for unit tests (and clean them up after the test run automatically).
UniqueRoot - Class in org.apache.sling.testing.mock.sling.context
  Manages unique root paths in JCR repository.
UniqueRoot(SlingContextImpl) - Constructor for class org.apache.sling.testing.mock.sling.context.UniqueRoot
updatedAdapterFactory(AdapterFactory, ServiceReference<AdapterFactory>) - Method in class org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
  Modify a adapter factory.

## V

valueOf(String) - Static method in enum org.apache.sling.testing.mock.sling.NodeTypeMode
  Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Returns the enum constant of this type with the specified name.
values() - Method in class org.apache.sling.testing.mock.sling.builder.ImmutableValueMap
values() - Static method in enum org.apache.sling.testing.mock.sling.NodeTypeMode
  Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.sling.testing.mock.sling.ResourceResolverType
  Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I J K L M N O P R S T U V
All Classes and Interfaces|All Packages