Closed
Description
When creating a SpringApplication
in their application's main method, users can apply customizations to meet their needs. When these same customisations are also needed in their application's tests, reusing the same customizations isn't particularly easy. Without sub-classing SpringBootContextLoader
, you can't get hold of the SpringApplication
without jumping through some hoops. It's possible via a listener and the ApplicationEnvironmentPreparedEvent
but that feels harder than it should.