@Version("3.3.0")
Package org.apache.sling.testing.mock.sling
Mock implementation of selected Sling APIs.
-
Class Summary Class Description MockAdapterManagerImpl This is a copy of org.apache.sling.adapter.internal.AdpaterManagerImpl from Sling Adapter 2.1.6, with all calls to SyntheticResource.setAdapterManager/unsetAdapterManager disabled, because this would break theThreadsafeMockAdapterManagerWrapper
concept.MockJcrSlingRepository MockSlingRepository
implementation.MockResourceBundle Mock implementation of an i18nResourceBundle
.MockResourceBundleProvider Mock implementation of @linkResourceBundleProvider
then ensures resolving i18n keys does not lead to exceptions.MockSling Factory for mock Sling objects.MockSlingScriptHelper MockSlingScriptHelper
implementation.MockXSSAPIImpl This is a very simplified mock implementation ofXSSAPI
which in most cases just returns the value that was passed in, or does only very basic validation.NodeTypeDefinitionScanner Singleton class that fetches all node type definitions from OSGi bundle MANIFEST.MF files with "Sling-Nodetypes" definitions in the classpath. -
Enum Summary Enum Description NodeTypeMode How to handle node types for differentResourceResolverType
types.ResourceResolverType The resource resolver mock implementation supports different underlying repository implementations.