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 | Class and Description |
---|---|
class |
AbstractContextPlugin<T extends OsgiContextImpl>
Default implementation of
ContextPlugin . |
interface |
ContextCallback<T extends OsgiContextImpl>
Callback interface for application-specific setup and teardown operations to
customize the mock context.
|
interface |
ContextPlugin<T extends OsgiContextImpl>
Callback plugin for application-specific setup and teardown operations to
customize the mock context.
|
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
|
<T extends OsgiContextImpl> |
ContextPlugins.addPlugin(ContextPlugin<T>... plugin)
Add plugin
|
<T extends OsgiContextImpl> |
ContextPlugins.executeAfterSetUpCallback(T context)
Execute all after setup callbacks.
|
<T extends OsgiContextImpl> |
ContextPlugins.executeAfterTearDownCallback(T context)
Execute all after teardown callbacks.
|
<T extends OsgiContextImpl> |
ContextPlugins.executeBeforeSetUpCallback(T context)
Execute all before setup callbacks.
|
<T extends OsgiContextImpl> |
ContextPlugins.executeBeforeTearDownCallback(T context)
Execute all before teardown callbacks.
|
Modifier and Type | Method and Description |
---|---|
Collection<ContextPlugin<? extends OsgiContextImpl>> |
ContextPlugins.getPlugins() |
Modifier and Type | Class and Description |
---|---|
class |
OsgiContext
JUnit rule for setting up and tearing down OSGi context for unit tests.
|
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) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.plugin(ContextPlugin<T>... plugin) |
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.