public final class OsgiContext extends OsgiContextImpl implements org.junit.rules.TestRule
componentContext| Constructor and Description |
|---|
OsgiContext()
Initialize OSGi context.
|
OsgiContext(ContextCallback<T> afterSetUpCallback)
Initialize OSGi context.
|
OsgiContext(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
bundleContext, componentContext, getService, getServices, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerService, registerService, registerService, registerService, setUp, tearDownpublic OsgiContext()
public OsgiContext(ContextCallback<T> afterSetUpCallback)
T - context typeafterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.public OsgiContext(ContextCallback<U> afterSetUpCallback, ContextCallback<V> beforeTearDownCallback)
U - context typeV - context typeafterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.beforeTearDownCallback - Allows the application to register an own callback function that is called before the built-in teardown rules are executed.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.