| Package | Description |
|---|---|
| org.apache.sling.testing.mock.osgi.context |
OSGi context implementation for unit tests.
|
| org.apache.sling.testing.mock.osgi.junit |
Rule for providing easy access to OSGi context in JUnit tests.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends OsgiContextImpl> |
ContextPlugins.addAfterSetUpCallback(ContextCallback<T>... afterSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addAfterTearDownCallback(ContextCallback<T>... afterTearDownCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addBeforeSetUpCallback(ContextCallback<T>... beforeSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addBeforeTearDownCallback(ContextCallback<T>... beforeTearDownCallback)
Add callback
|
| Constructor and Description |
|---|
ContextPlugins(ContextCallback<T> afterSetUpCallback)
Start with some callbacks.
|
ContextPlugins(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Start with some callbacks.
|
ContextPlugins(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Start with some callbacks.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
OsgiContextCallback
Callback interface for application-specific setup and teardown operations to
customize the
OsgiContext JUnit rule. |
| Modifier and Type | Method and Description |
|---|---|
<T extends OsgiContextImpl> |
OsgiContextBuilder.afterSetUp(ContextCallback<T>... afterSetUpCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.afterTearDown(ContextCallback<T>... afterTearDownCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.beforeSetUp(ContextCallback<T>... beforeSetUpCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.beforeTearDown(ContextCallback<T>... beforeTearDownCallback) |
| Constructor and Description |
|---|
OsgiContext(ContextCallback<T> afterSetUpCallback)
Initialize OSGi context.
|
OsgiContext(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
OsgiContext(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.