Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractContextPlugin<T extends OsgiContextImpl> - Class in org.apache.sling.testing.mock.osgi.context
-
Default implementation of
ContextPlugin. - AbstractContextPlugin() - Constructor for class org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin
- accumulator() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
- activate(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates activation of a DS component instance.
- activate(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates activation of a DS component instance.
- activate(Object, BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates activation of a DS component instance.
- activate(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates activation of a DS component instance.
- activate(ComponentContext) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- activateInjectServices(Class<T>, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates OSGi DS dependency injection and activation.
- activateInjectServices(Class<T>, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates OSGi DS dependency injection and activation.
- activateInjectServices(Class<T>, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates OSGi DS dependency injection and activation.
- adapt(Class<A>) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- addAfterSetUpCallback(ContextCallback<? extends OsgiContextImpl>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Add callback
- addAfterTearDownCallback(ContextCallback<? extends OsgiContextImpl>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Add callback
- addBeforeSetUpCallback(ContextCallback<? extends OsgiContextImpl>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Add callback
- addBeforeTearDownCallback(ContextCallback<? extends OsgiContextImpl>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Add callback
- addPlugin(ContextPlugin<? extends OsgiContextImpl>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Add plugin
- afterSetUp(T) - Method in class org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin
- afterSetUp(T) - Method in interface org.apache.sling.testing.mock.osgi.context.ContextPlugin
-
Is executed after the built-in setup rules are executed.
- afterTearDown(T) - Method in class org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin
- afterTearDown(T) - Method in interface org.apache.sling.testing.mock.osgi.context.ContextPlugin
-
Is executed after the built-in teardown rules are executed.
- AnnotationTypedConfig<T> - Class in org.apache.sling.testing.mock.osgi.config
-
Default implementation of
TypedConfig. - assertOneToOneMapping(Class<?>, String[]) - Static method in class org.apache.sling.testing.mock.osgi.config.ComponentPropertyParser
- AutoConfig - Annotation Type in org.apache.sling.testing.mock.osgi.config.annotations
-
Declares a component configuration pid for which all non-configured component property type annotations in scope are converted to maps and merged to ConfigurationAdmin just prior to test execution.
B
- beforeSetUp(T) - Method in class org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin
- beforeSetUp(T) - Method in interface org.apache.sling.testing.mock.osgi.context.ContextPlugin
-
Is executed before the built-in setup rules are executed.
- beforeTearDown(T) - Method in class org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin
- beforeTearDown(T) - Method in interface org.apache.sling.testing.mock.osgi.context.ContextPlugin
-
Is executed before the built-in teardown rules are executed.
- bindEventHandler(EventHandler, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- build() - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
- bundleContext() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
- bundleContext(BundleContext) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
C
- characteristics() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
- combiner() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
- compareTo(Bundle) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- component() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigType
-
When
ConfigType.pid()is set toComponent.NAME, set this attribute to a class whose name should be used instead. - component() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.SetConfig
-
When
SetConfig.pid()is set to the default value ofComponent.NAME, set this attribute to a class whose name should be used instead. - componentContext - Variable in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
- componentContext() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
- componentContext() - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- ComponentContextBuilder - Class in org.apache.sling.testing.mock.osgi
-
Builds a mocked
ComponentContext. - ComponentPropertyParser - Class in org.apache.sling.testing.mock.osgi.config
-
A few items borrowed from biz.aQute.bndlib DSAnnotationReader and PropertyDef to construct a Map for felix scr Annotations.toObject() from a combination of an annotation type and an array of property key=value strings provided via a
ConfigTypeannotation. - ConfigAnnotationUtil - Class in org.apache.sling.testing.mock.osgi.config
-
Common functions for resolving OSGi config test parameters.
- ConfigAnnotationUtil.ConfigTypePredicate - Interface in org.apache.sling.testing.mock.osgi.config
-
Predicate for custom filtering of fully identified candidate annotations, accepting an
OptionalofConfigTyperepresenting the parent annotation when present, and theClassof the effective config type. - ConfigCollection - Interface in org.apache.sling.testing.mock.osgi.config.annotations
-
A heterogeneously typed collection of OSGi Config objects for injection as a test parameter.
- configStream(Class<T>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.ConfigCollection
-
Return a typed stream of only those configs in the collection that match the desired config type.
- configStream(Class<U>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.TypedConfig
-
Returns a 0- or 1-element config stream (containing only this entry's config) depending on whether this entry's
TypedConfig.getType()matches the providedotherType. - ConfigType - Annotation Type in org.apache.sling.testing.mock.osgi.config.annotations
-
Defines an instance of an OSGi R7 Component Property Type as a combination of a
Classand an array of strings defining property values in the form expected byComponent.property(). - configTypeAnnotationFilter(ConfigAnnotationUtil.ConfigTypePredicate) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Utility function that returns a predicate for use as a filter expression for
ConfigAnnotationUtil.findConfigTypeAnnotations(AnnotatedElement)andConfigAnnotationUtil.findConfigTypeAnnotations(Collection)that reduces the input stream of annotations based on provided set of allowed config types. - ConfigTypeContext - Class in org.apache.sling.testing.mock.osgi.config
-
Performs configuration management and component property type construction for
ConfigTypeandSetConfigannotations. - ConfigTypeContext(OsgiContextImpl) - Constructor for class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
- ConfigTypes - Annotation Type in org.apache.sling.testing.mock.osgi.config.annotations
-
Repeatablecontainer annotation forConfigType. - ConfigTypeStrictnessViolation - Exception in org.apache.sling.testing.mock.osgi.config
-
Specific exception type thrown when a
ConfigTypeannotation is resolved which hasConfigType.lenient()set totrue, which fails to meet the documented assertion rules. - ConfigTypeStrictnessViolation(String) - Constructor for exception org.apache.sling.testing.mock.osgi.config.ConfigTypeStrictnessViolation
- constructConfigType(ConfigType) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Return a concrete instance of the OSGi config / Component Property Type represented by the given
ConfigTypeannotation discovered via reflection. - constructConfigType(ConfigType, String) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Return a concrete instance of the OSGi config / Component Property Type represented by the given
ConfigTypeannotation discovered via reflection. - ContextCallback<T extends OsgiContextImpl> - Interface in org.apache.sling.testing.mock.osgi.context
-
Callback interface for application-specific setup and teardown operations to customize the mock context.
- ContextPlugin<T extends OsgiContextImpl> - Interface in org.apache.sling.testing.mock.osgi.context
-
Callback plugin for application-specific setup and teardown operations to customize the mock context.
- ContextPlugins - Class in org.apache.sling.testing.mock.osgi.context
-
Collects list of context plugins.
- ContextPlugins() - Constructor for class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Start with empty list.
- ContextPlugins(ContextCallback<T>) - Constructor for class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Start with some callbacks.
- ContextPlugins(ContextCallback<U>, ContextCallback<V>) - Constructor for class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Start with some callbacks.
D
- deactivate(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates deactivation of a DS component instance.
- deactivate(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates deactivation of a DS component instance.
- deactivate(Object, BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates deactivation of a DS component instance.
- deactivate(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates deactivation of a DS component instance.
- deactivate(ComponentContext) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- determineSupportedConfigType(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Return the appropriate config type for the given test parameter type, if it supported for binding.
- DictionaryCollector<K,
V> - Class in org.apache.sling.testing.mock.osgi - DictionaryCollector(Function<? super Map.Entry<K, V>, ? extends K>, Function<? super Map.Entry<K, V>, ? extends V>) - Constructor for class org.apache.sling.testing.mock.osgi.DictionaryCollector
E
- execute(T) - Method in interface org.apache.sling.testing.mock.osgi.context.ContextCallback
-
Execute callback action
- executeAfterSetUpCallback(T) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Execute all after setup callbacks.
- executeAfterTearDownCallback(T) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Execute all after teardown callbacks.
- executeBeforeSetUpCallback(T) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Execute all before setup callbacks.
- executeBeforeTearDownCallback(T) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
-
Execute all before teardown callbacks.
F
- findConfigTypeAnnotations(AnnotatedElement) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find candidate OSGi config annotations on the given
AnnotatedElement, returning a stream of only those matching one of the desired config types. - findConfigTypeAnnotations(AnnotatedElement, ConfigAnnotationUtil.ConfigTypePredicate) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find candidate OSGi config annotations on the given
AnnotatedElement, returning a stream of only those matching one of the desired config types. - findConfigTypeAnnotations(Collection<Annotation>) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find candidate OSGi config annotations in the given collection, returning a stream of only those matching one of the desired config types.
- findConfigTypeAnnotations(Collection<Annotation>, ConfigAnnotationUtil.ConfigTypePredicate) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find candidate OSGi config annotations in the given collection, returning a stream of only those matching one of the desired config types.
- findEntries(String, String, boolean) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- findUpdateConfigAnnotations(AnnotatedElement) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find
SetConfigannotations on the givenAnnotatedElement. - findUpdateConfigAnnotations(Collection<Annotation>) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Find
SetConfigannotations in the given collection. - finisher() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
- firstConfig(Class<T>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.ConfigCollection
-
Return the first available config of type configType, or throw if none are available.
- firstConfigMap(Class<T>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.ConfigCollection
-
Return the first available config of type configType as a
Map, or throw if none are available.
G
- getBundleContext() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getBundleId() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getConfig() - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.TypedConfig
-
The config object.
- getConfig() - Method in class org.apache.sling.testing.mock.osgi.config.AnnotationTypedConfig
- getConfigMap() - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.TypedConfig
-
Convert the config instance into a traditional config property map.
- getConfigMap() - Method in class org.apache.sling.testing.mock.osgi.config.AnnotationTypedConfig
- getConfigurationPid(String, Class) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Construct a configuration pid for use with
ConfigurationAdmin.getConfiguration(String). - getDataFile(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getEntry(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getEntryPaths(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getHeaders() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getHeaders(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getLastModified() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getLocation() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getPlugins() - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
- getRegisteredServices() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getResource(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getResources(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getService(Class<ServiceType>) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Lookup a single service
- getServices(Class<ServiceType>, String) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Lookup one or several services
- getServicesInUse() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getSignerCertificates(int) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getState() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getSymbolicName() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- getType() - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.TypedConfig
-
The config type.
- getType() - Method in class org.apache.sling.testing.mock.osgi.config.AnnotationTypedConfig
- getValues(String) - Static method in class org.apache.sling.testing.mock.osgi.ManifestScanner
-
Get all bundle header values stored in MANIFEST.MF files as attributes.
- getVersion() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
H
- hasPermission(Object) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
I
- injectServices(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates OSGi DS dependency injection.
- injectServices(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates OSGi DS dependency injection.
- isSupportedConfigTypeValueType(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.config.ComponentPropertyParser
- isSupportedPropertyMapValueType(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.config.ComponentPropertyParser
- isValidConfigType(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Utility function for filtering out component property types that can't be mapped to configurations.
L
- lenient() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigType
-
When set to false, throw a
ConfigTypeStrictnessViolationon construction if there is not an exact one-to-one mapping between property names specified inConfigType.property()and the addressable attributes ofConfigType.type(). - loadClass(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
-
This is primarily used within the context of unit testing by
Annotations.toObject(Class, Map, Bundle, boolean)for injection ofClass-typed OSGi config attributes for default values and String properties representing FQDNs.
M
- ManifestScanner - Class in org.apache.sling.testing.mock.osgi
-
Scan METAINF/MANIFEST.MF files.
- MapUtil - Class in org.apache.sling.testing.mock.osgi
-
Map util methods.
- MockBundle - Class in org.apache.sling.testing.mock.osgi
-
Mock
Bundleimplementation. - MockBundle(BundleContext) - Constructor for class org.apache.sling.testing.mock.osgi.MockBundle
-
Constructor
- MockEventAdmin - Class in org.apache.sling.testing.mock.osgi
-
Mock implementation of
EventAdmin. - MockEventAdmin() - Constructor for class org.apache.sling.testing.mock.osgi.MockEventAdmin
- MockOsgi - Class in org.apache.sling.testing.mock.osgi
-
Factory for mock OSGi objects.
- modified(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates configuration modification of a DS component instance.
- modified(Object, BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates configuration modification of a DS component instance.
- modified(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates configuration modification of a DS component instance.
N
- newBundleContext() - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext() - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newComponentContext(Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newInstance(Class<T>, Object, Annotation) - Static method in class org.apache.sling.testing.mock.osgi.config.AnnotationTypedConfig
-
Constructs a new instance of a
AnnotationTypedConfig. - newLogService(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
- newTypedConfig(Annotation) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Construct a collection typed config for the provided annotation.
- newTypedConfig(Annotation, String) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Construct a collection typed config for the provided annotation.
- NoScrMetadataException - Exception in org.apache.sling.testing.mock.osgi
-
Is thrown when a OSGi mock method required SCR metadata and this is not found in the classpath.
- NoScrMetadataException(Class<?>) - Constructor for exception org.apache.sling.testing.mock.osgi.NoScrMetadataException
O
- org.apache.sling.testing.mock.osgi - package org.apache.sling.testing.mock.osgi
-
Mock implementation of selected OSGi APIs.
- org.apache.sling.testing.mock.osgi.config - package org.apache.sling.testing.mock.osgi.config
-
OSGi Config Type Parameters core implementation.
- org.apache.sling.testing.mock.osgi.config.annotations - package org.apache.sling.testing.mock.osgi.config.annotations
-
Annotations and interfaces intended to be referenced in end-user test classes for parameter and config resolution.
- org.apache.sling.testing.mock.osgi.context - package org.apache.sling.testing.mock.osgi.context
-
OSGi context implementation for unit tests.
- OsgiContextImpl - Class in org.apache.sling.testing.mock.osgi.context
-
Defines OSGi context objects and helper methods.
- OsgiContextImpl() - Constructor for class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
P
- parse(Class<?>, String[]) - Static method in class org.apache.sling.testing.mock.osgi.config.ComponentPropertyParser
- parse(String[]) - Static method in class org.apache.sling.testing.mock.osgi.config.ComponentPropertyParser
- pid() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.AutoConfig
-
If the component pid is different from the provided
AutoConfig.value(), set this attribute appropriately. - pid() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigType
-
Specify a configuration pid to load, which will override matching values specified by
ConfigType.property(). - pid() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.SetConfig
-
Specify a configuration pid to update with values specified by
SetConfig.property(). - postEvent(Event) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- properties(Object...) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
- properties(Dictionary<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
- properties(Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
- property() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigType
-
Treat like
Component.property(). - property() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.SetConfig
-
Parsed like
Component.property().
R
- ReferenceViolationException - Exception in org.apache.sling.testing.mock.osgi
-
Is thrown when a OSGi reference injection fails due to violated constraints.
- ReferenceViolationException(String) - Constructor for exception org.apache.sling.testing.mock.osgi.ReferenceViolationException
- registerInjectActivateService(Class<T>) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(Class<T>, Object...) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(Class<T>, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(Class<T>, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(Class<T>, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(Class<T>, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T, Object...) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerInjectActivateService(T, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Injects dependencies, activates and registers a DS component in the mocked OSGi environment.
- registerService(Class<T>, T) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Registers a service in the mocked OSGi environment.
- registerService(Class<T>, T, Object...) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Registers a service in the mocked OSGi environment.
- registerService(Class<T>, T, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Registers a service in the mocked OSGi environment.
- registerService(T) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Registers a service in the mocked OSGi environment.
- resolveParameterToArray(ConfigCollection, Class<T>) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Returns an array of configs matching the specified parameter config type.
- resolveParameterToConfigMap(ConfigCollection, Class<T>, Class<?>[], int) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Returns the first config map from the
ConfigCollection, if present, after skipping the same number of values as there are matching signature parameter types with an index lower than the current parameterIndex. - resolveParameterToTypedConfig(ConfigCollection, Class<T>, Class<?>[], int) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Returns the first
TypedConfigfrom theConfigCollection, if present, after skipping the same number of values as there are matching signature parameter types with an index lower than the current parameterIndex. - resolveParameterToValue(ConfigCollection, Class<T>, Class<?>[], int) - Static method in class org.apache.sling.testing.mock.osgi.config.ConfigAnnotationUtil
-
Returns the first config value from the
ConfigCollection, if present, after skipping the same number of values as there are matching signature parameter types with an index lower than the current parameterIndex.
S
- sendBundleEvent(BundleContext, BundleEvent) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Simulates a bundle event on the given bundle context (that is forwarded to registered bundle listeners).
- sendEvent(Event) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- SetConfig - Annotation Type in org.apache.sling.testing.mock.osgi.config.annotations
-
Define this annotation on a test class or method to use the
ConfigurationAdminservice to update the persisted properties for the configuration whose pid matches theSetConfig.pid()attribute. - setConfigForPid(BundleContext, String, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Set configuration via ConfigurationAdmin service in bundle context for component with given pid.
- setConfigForPid(BundleContext, String, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Set configuration via ConfigurationAdmin service in bundle context for component with given pid.
- SetConfigs - Annotation Type in org.apache.sling.testing.mock.osgi.config.annotations
-
Repeatablecontainer annotation forSetConfig. - setHeaders(Map<String, String>) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
-
Set headers for mock bundle
- setLastModified(long) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
-
Set the last modified value for the mock bundle
- setSymbolicName(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
-
Set symbolic name for mock bundle
- setUp() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Setup actions before test method execution
- setVersion(Version) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
-
Sets a new version for this bundle
- shutdown(BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
-
Deactivates all bundles registered in the mocked bundle context.
- start() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- start(int) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- stop() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- stop(int) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- stream() - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.ConfigCollection
-
Return an untyped stream of all the typed configs contained in this collection.
- stream(Class<T>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.ConfigCollection
-
Return a typed stream of only those entries in the collection that match the desired config type.
- stream(Class<U>) - Method in interface org.apache.sling.testing.mock.osgi.config.annotations.TypedConfig
-
Returns a 0- or 1-element entry stream (containing only this entry) depending on whether this entry's
TypedConfig.getType()matches the providedotherType. - supplier() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
T
- tearDown() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
Teardown actions after test method execution
- toDictionary(Object...) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
-
Convert key/value pairs to dictionary
- toDictionary(Map<T, U>) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
-
Convert map to dictionary.
- toMap(Object...) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
-
Convert key/value pairs to map
- toMap(Dictionary<T, U>) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
-
Convert Dictionary to map
- type() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigType
-
Required type to construct.
- TypedConfig<T> - Interface in org.apache.sling.testing.mock.osgi.config.annotations
-
Represents a single config entry within a
ConfigCollection.
U
- unbindEventHandler(EventHandler, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
- uninstall() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- update() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- update(InputStream) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
- updateConfiguration(String, Map<String, Object>) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Updates a
Configurationfrom the provided pid and property map. - updateConfiguration(SetConfig) - Method in class org.apache.sling.testing.mock.osgi.config.ConfigTypeContext
-
Updates a
Configurationfrom the provided annotation. - usingBundle(Bundle) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
V
- value() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.AutoConfig
-
The component class to be configured using its name as the configuration pid.
- value() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.ConfigTypes
-
Return an array of nested
ConfigTypeannotations. - value() - Element in annotation type org.apache.sling.testing.mock.osgi.config.annotations.SetConfigs
-
Return an array of nested
SetConfigannotations.
All Classes and Interfaces|All Packages|Serialized Form