Package org.apache.sling.testing.mock.osgi.junit5


@Version("1.1.0") package org.apache.sling.testing.mock.osgi.junit5
JUnit 5 extensions for OSGi context.
  • Class
    Description
    Annotate a ConfigCollection test parameter to only include ConfigType-constructed configs and optionally override the configuration pid applied to them.
    Annotate a test parameter of type Map to inject a matching component property type or ConfigType after converting it to a map of config properties.
    An Extension which uses JUnit5 context reflection to discover OSGi Config Type Annotations present on test methods and classes, and then injects them as test parameters.
    OSGi Mock parameter object.
    Builder class for creating OsgiContext instances with different sets of parameters.
    Callback interface for application-specific setup and teardown operations to customize the OsgiContext JUnit parameter context.
    JUnit 5 extension that allows to inject OsgiContext (or subclasses of it) parameters in test methods, and ensures that the context is set up and teared down properly for each test method.