A B C D E F G H I L M N O P R S T U 
All Classes All Packages

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<T>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
Add callback
addAfterTearDownCallback(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
Add callback
addBeforeSetUpCallback(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
Add callback
addBeforeTearDownCallback(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.context.ContextPlugins
Add callback
addPlugin(ContextPlugin<T>...) - 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.

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
 
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.
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
 
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

findEntries(String, String, boolean) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
 
finisher() - Method in class org.apache.sling.testing.mock.osgi.DictionaryCollector
 

G

getBundleContext() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
 
getBundleId() - Method in class org.apache.sling.testing.mock.osgi.MockBundle
 
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
 
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.

L

loadClass(String) - Method in class org.apache.sling.testing.mock.osgi.MockBundle
 

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 Bundle implementation.
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
 
newLogService(Class<?>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
 
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.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

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
 

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.

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
 
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.
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
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
 
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

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
 
usingBundle(Bundle) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
 
A B C D E F G H I L M N O P R S T U 
All Classes All Packages