Julian Sedding created SLING-10497:
--------------------------------------
Summary: JUnit Jupiter ParameterResolver for OSGi
Key: SLING-10497
URL: https://issues.apache.org/jira/browse/SLING-10497
Project: Sling
Issue Type: New Feature
Components: JUnit Core, Testing
Affects Versions: JUnit Core 1.1.2
Reporter: Julian Sedding
Assignee: Julian Sedding
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 {{TestEngine}}s. 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)