Skip navigation links
A B C D E F G H I L M N O P R S T U 

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
 
activate(ComponentContext) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
 
activate(Object) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.activate(Object, BundleContext) and shutdown the bundle context after usage.
activate(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
activate(Object, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.activate(Object, BundleContext, Dictionary) and shutdown the bundle context after usage.
activate(Object, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.activate(Object, BundleContext, Map) and shutdown the bundle context after usage.
activate(Object, BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
activate(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
activate(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
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.
afterSetUp(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
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.
afterTearDown(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
apply(Statement, Description) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContext
 

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.
beforeSetUp(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
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.
beforeTearDown(ContextCallback<T>...) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
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
 
build() - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
bundleContext(BundleContext) - Method in class org.apache.sling.testing.mock.osgi.ComponentContextBuilder
 
bundleContext() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
 

C

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(ComponentContext) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
 
deactivate(Object) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.deactivate(Object, BundleContext) and shutdown the bundle context after usage.
deactivate(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate deactivation of service instance.
deactivate(Object, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.deactivate(Object, BundleContext, Dictionary) and shutdown the bundle context after usage.
deactivate(Object, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Deprecated.
Please use MockOsgi.deactivate(Object, BundleContext, Map) and shutdown the bundle context after usage.
deactivate(Object, BundleContext, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate deactivation of service instance.
deactivate(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
deactivate(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.

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
 

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
Simulate OSGi service 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, Dictionary<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate configuration modification of service instance.
modified(Object, BundleContext, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate configuration modification of service instance.
modified(Object, BundleContext, Object...) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate configuration modification of service 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(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
 
newComponentContext(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(BundleContext, 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.
org.apache.sling.testing.mock.osgi.junit - package org.apache.sling.testing.mock.osgi.junit
Rule for providing easy access to OSGi context in JUnit tests.
OsgiContext - Class in org.apache.sling.testing.mock.osgi.junit
JUnit rule for setting up and tearing down OSGi context for unit tests.
OsgiContext() - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContext
Initialize OSGi context.
OsgiContext(ContextCallback<T>) - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContext
Initialize OSGi context.
OsgiContext(ContextCallback<U>, ContextCallback<V>) - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContext
Initialize OSGi context.
OsgiContextBuilder - Class in org.apache.sling.testing.mock.osgi.junit
Builder class for creating OsgiContext instances with different sets of parameters.
OsgiContextBuilder() - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
Create builder with default resource resolver type.
OsgiContextCallback - Interface in org.apache.sling.testing.mock.osgi.junit
Callback interface for application-specific setup and teardown operations to customize the OsgiContext JUnit rule.
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

plugin(ContextPlugin<T>...) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContextBuilder
 
postEvent(Event) - Method in class org.apache.sling.testing.mock.osgi.MockEventAdmin
 
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
 
properties(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(T) - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
Injects dependencies, activates and registers a service 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 service 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 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.
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, Map<String, Object>) - 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.

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

T

tearDown() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
Teardown actions after test method execution
toDictionary(Map<T, U>) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
Convert map to dictionary.
toDictionary(Object...) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
Convert key/value pairs to dictionary
toMap(Dictionary<T, U>) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
Convert Dictionary to map
toMap(Object...) - Static method in class org.apache.sling.testing.mock.osgi.MapUtil
Convert key/value pairs 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 
Skip navigation links

Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.