Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15340

Make SpringExtension.getApplicationContext() public

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0 M5
    • Fix Version/s: 5.0 RC1
    • Component/s: Test
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      If you are writing a custom junit-jupiter extension for spring that needs access to the application context, it would be desirable to use the SpringExtension.getApplicationContext() method, just like the built-in extensions.

      Currently this method is package private which introduces some restrictions. Is that intended for some reason, or is there maybe a better way to get access to the app context? Otherwise it would be helpful if you make this method public.

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              ralf.stuckert Ralf Stuckert
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 27 weeks, 2 days ago