Skip navigation links
A B C D E G I M N O R S T 

A

activate(Object) - 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
Simulate activation of service instance.
activate(Object, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate activation of service instance.
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.
apply(Statement, Description) - Method in class org.apache.sling.testing.mock.osgi.junit.OsgiContext
 

B

bundleContext() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
 

C

componentContext - Variable in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
 
componentContext() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
 

D

deactivate(Object) - 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
Simulate deactivation of service instance.
deactivate(Object, Map<String, Object>) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate deactivation of service instance.
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.

E

execute(OsgiContext) - Method in interface org.apache.sling.testing.mock.osgi.junit.OsgiContextCallback
Execute callback action

G

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

I

injectServices(Object, BundleContext) - Static method in class org.apache.sling.testing.mock.osgi.MockOsgi
Simulate OSGi service dependency injection.

M

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.

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(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
 
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(OsgiContextCallback) - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContext
Initialize OSGi context.
OsgiContext(OsgiContextCallback, OsgiContextCallback) - Constructor for class org.apache.sling.testing.mock.osgi.junit.OsgiContext
Initialize OSGi context.
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
 

R

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

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).
setUp() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
Setup actions before test method execution

T

tearDown() - Method in class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
Teardown actions after test method execution
A B C D E G I M N O R S T 
Skip navigation links

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