@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 theThreadsafeMockAdapterManagerWrapperconcept.MockJcrSlingRepository MockSlingRepositoryimplementation.MockResourceBundle Mock implementation of an i18nResourceBundle.MockResourceBundleProvider Mock implementation of @linkResourceBundleProviderthen ensures resolving i18n keys does not lead to exceptions.MockSling Factory for mock Sling objects.MockSlingScriptHelper MockSlingScriptHelperimplementation.MockXSSAPIImpl This is a very simplified mock implementation ofXSSAPIwhich 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 differentResourceResolverTypetypes.ResourceResolverType The resource resolver mock implementation supports different underlying repository implementations.