Package org.apache.sling.testing.mock.sling
@Version("4.0.0")
package org.apache.sling.testing.mock.sling
Mock implementation of selected Sling APIs.
-
ClassDescriptionThis 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 the
ThreadsafeMockAdapterManagerWrapper
concept.MockSlingRepository
implementation.Mock implementation of an i18nResourceBundle
.Mock implementation of @linkResourceBundleProvider
then ensures resolving i18n keys does not lead to exceptions.Factory for mock Sling objects.MockSlingScriptHelper
implementation.Mock implementation ofXSSFilter
that just accepts anything.Singleton class that fetches all node type definitions from OSGi bundle MANIFEST.MF files with "Sling-Nodetypes" definitions in the classpath.How to handle node types for differentResourceResolverType
types.The resource resolver mock implementation supports different underlying repository implementations.