Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
JUnit Core 1.1.2
-
None
Description
Sling JUnit Core provides support for server-side tests, i.e. tests running within an OSGi environment. The bundle has recently been enhanced to (optionally) support the use of "JUnit Platform"-based TestEngines. This allows running e.g. Jupiter (aka JUnit 5) tests.
However, currently there is no Jupiter-style way to easily access OSGi services, as all existing utilities are tied to JUnit 4 APIs (e.g. TestRunner or TestRule).
It would be desirable to allow easy access to OSGi services and the BundleContext/Bundle objects in Jupiter tests. This is typically done using a ParameterResolver, which allows injecting objects as method or constructor parameters.
Attachments
Issue Links
- is related to
-
SLING-10396 JUnit Teleporter should (also) be available as Jupiter Extension
- Closed