Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10497

JUnit Jupiter ParameterResolver for OSGi

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JUnit Core 1.1.2
    • JUnit Core 1.1.6
    • JUnit Core, Testing
    • 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

          Activity

            People

              jsedding Julian Sedding
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m