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
..
2021-02-02 13:03:21 +00:00
2021-11-12 20:31:25 +00:00
2021-11-12 20:31:25 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-05-17 09:31:51 +02:00
2021-02-02 15:12:27 +00:00
2021-02-02 13:03:21 +00:00
2021-03-24 14:10:12 -07:00
2021-02-02 13:03:21 +00:00
2021-05-17 13:39:53 +01:00
2021-04-13 20:05:48 +01:00
2021-02-02 15:12:27 +00:00
2021-08-18 17:56:32 +01:00
2021-02-02 13:03:21 +00:00
2021-08-12 18:07:42 +01:00
2021-02-02 15:12:27 +00:00
2021-03-29 12:01:19 +01:00
2021-02-02 15:12:27 +00:00
2021-11-12 20:04:35 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-11-23 12:13:05 -06:00
2021-06-08 18:05:50 -07:00
2021-03-10 12:14:54 +00:00
2021-02-02 15:12:27 +00:00
2021-02-02 13:03:21 +00:00
2021-05-17 09:31:51 +02:00
2021-08-18 17:52:42 +01:00
2021-02-02 13:03:21 +00:00
2021-07-21 11:53:10 +01:00
2021-11-12 20:04:35 +00:00
2021-11-12 20:04:35 +00:00
2021-11-12 20:04:35 +00:00
2021-11-12 20:31:25 +00:00
2021-02-02 15:12:27 +00:00
2021-05-17 09:31:51 +02:00
2021-11-12 20:31:25 +00:00
2021-05-17 09:31:51 +02:00
2021-11-12 20:04:35 +00:00
2021-02-02 15:12:27 +00:00
2021-05-17 09:31:51 +02:00
2022-01-14 13:47:22 -08:00
2021-02-02 13:03:21 +00:00
2021-08-18 17:56:32 +01:00
2021-11-12 20:04:35 +00:00
2021-02-02 13:03:21 +00:00
2021-08-18 17:52:42 +01:00
2021-02-02 15:12:27 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 15:14:18 +00:00
2021-07-21 11:53:10 +01:00
2021-02-02 13:03:21 +00:00
2021-06-08 18:05:12 -07:00
2021-03-10 14:36:34 +00:00
2021-02-02 15:12:27 +00:00
2021-11-12 20:31:25 +00:00
2021-05-17 09:31:51 +02:00
2021-02-02 13:03:21 +00:00
2021-05-17 09:31:51 +02:00
2021-11-12 20:04:35 +00:00
2021-11-12 20:04:35 +00:00
2021-11-12 20:04:35 +00:00
2021-12-16 13:45:12 -08:00
2021-02-02 13:03:21 +00:00
2021-11-12 20:04:35 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-11-12 20:31:25 +00:00
2021-11-23 12:13:05 -06:00
2021-02-02 13:03:21 +00:00
2021-11-23 12:13:05 -06:00
2021-11-23 12:13:05 -06:00
2021-11-23 12:13:05 -06:00
2021-02-02 13:03:21 +00:00
2021-11-23 12:13:05 -06:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 13:03:21 +00:00
2021-02-02 15:12:27 +00:00
2021-07-13 09:56:45 +02:00
2021-02-02 15:12:27 +00:00
2021-02-02 15:12:27 +00:00
2021-05-17 09:31:51 +02:00