@Version("1.1.0")
Package org.apache.sling.testing.mock.osgi.junit5
JUnit 5 extensions for OSGi context.
-
Interface Summary Interface Description OsgiContextCallback Callback interface for application-specific setup and teardown operations to customize theOsgiContext
JUnit parameter context. -
Class Summary Class Description OsgiConfigParametersExtension AnExtension
which uses JUnit5 context reflection to discover OSGi Config Type Annotations present on test methods and classes, and then injects them as test parameters.OsgiContext OSGi Mock parameter object.OsgiContextBuilder Builder class for creatingOsgiContext
instances with different sets of parameters.OsgiContextExtension JUnit 5 extension that allows to injectOsgiContext
(or subclasses of it) parameters in test methods, and ensures that the context is set up and teared down properly for each test method. -
Annotation Types Summary Annotation Type Description CollectConfigTypes Annotate aConfigCollection
test parameter to only includeConfigType
-constructed configs and optionally override the configuration pid applied to them.ConfigMap Annotate a test parameter of typeMap
to inject a matching component property type orConfigType
after converting it to a map of config properties.