spring-boot/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-profile
Phillip Webb 3f7bf7d34f Modify SpringApplication Environment rather than setting it
Update `SpringBootContextLoader` so that when possible the
`SpringApplication` remains in control of creating the `Environment`
instance.

Prior to this commit, we would always create the `Environment` in the
`SpringBootContextLoader` and then call `setEnvironment` on the
`SpringApplication`. This meant that the `ApplicationEnvironment`
classes were not used and that `isCustomEnvironment` was set to `true`
so no conversion was applied.

With the updated code, an `ApplicationListener` is used to mutate the
`Environment` instance and add the required test property sources.

Fixes gh-29169
2022-01-14 13:47:22 -08:00
..
src Modify SpringApplication Environment rather than setting it 2022-01-14 13:47:22 -08:00
application.yml Move smoke tests under spring-boot-test 2019-07-02 15:55:58 -07:00
build.gradle Use side-effect free environment with tests rather than converting 2022-01-12 14:21:52 -08:00