@ProviderType
public final class OsgiContext
extends org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
implements org.junit.rules.TestRule
| Constructor and Description |
|---|
OsgiContext()
Initialize OSGi context.
|
OsgiContext(@NotNull org.apache.sling.testing.mock.osgi.context.ContextCallback<T> afterSetUpCallback)
Initialize OSGi context.
|
OsgiContext(@NotNull org.apache.sling.testing.mock.osgi.context.ContextCallback<U> afterSetUpCallback,
@NotNull org.apache.sling.testing.mock.osgi.context.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(@NotNull
@NotNull org.apache.sling.testing.mock.osgi.context.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(@NotNull
@NotNull org.apache.sling.testing.mock.osgi.context.ContextCallback<U> afterSetUpCallback,
@NotNull
@NotNull org.apache.sling.testing.mock.osgi.context.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–2019 The Apache Software Foundation. All rights reserved.