Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Make SpringExtension.getApplicationContext() public [SPR-15340] #19903
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
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.
Affects: 5.0 M5
Sam Brannen commented
Juergen Hoeller, thanks for tackling this one.
I originally considered making that method public, but I was a bit hesitant due to the (possibly unforeseeable changing) nature/scope of the