# Package org.apache.sling.testing.mock.sling

@Version("5.0.0") package org.apache.sling.testing.mock.sling
Mock implementation of selected Sling APIs.

Related Packages
Package
Description
org.apache.sling.testing.mock.sling.builder
Content builder for creating test content.
org.apache.sling.testing.mock.sling.context
Sling context implementation for unit tests.
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
Mocks for selected Sling services.
org.apache.sling.testing.mock.sling.servlet
Mock implementation of selected Servlet-related Sling APIs.
org.apache.sling.testing.mock.sling.spi
SPI for hooking in alternative resource type adapter implementations.
Class
Description
MockAdapterManagerImpl
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.
MockJcrSlingRepository
Mock `SlingRepository` implementation.
MockResourceBundle
Mock implementation of an i18n `ResourceBundle`.
MockResourceBundleProvider
Mock implementation of @link `ResourceBundleProvider` then ensures resolving i18n keys does not lead to exceptions.
MockSling
Factory for mock Sling objects.
MockSlingScriptHelper
Mock `SlingScriptHelper` implementation.
MockXSSFilter
Mock implementation of `XSSFilter` that just accepts anything.
NodeTypeDefinitionScanner
Singleton class that fetches all node type definitions from OSGi bundle MANIFEST.MF files with "Sling-Nodetypes" definitions in the classpath.
NodeTypeMode
How to handle node types for different `ResourceResolverType` types.
ResourceResolverType
The resource resolver mock implementation supports different underlying repository implementations.