Andy Wilkinson
8f1b8622ba
Ensure that webEnvironment=NONE creates non-web context
...
Previously, if spring.main.web-application-type was configured in
application.properties to servlet or reactive, setting
webEnvironment=NONE on @SpringBootTest would not work correctly and
a servlet or reactive web application context would be created
based on the value of spring.main.web-application-type.
This commit updates the test context bootstapper to set
spring.main.web-application-type to none when webEnvironment has been
set to none. This is done in the merged context configuration's
property source properties which are applied to the environment in a
high-precedence test property source that will override configuration
in application.properties.
Closes gh-29695
2022-04-14 14:44:30 +01: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
2022-02-01 10:03:18 +01:00
2021-02-02 13:03:21 +00:00
2022-03-23 12:03:35 +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
2022-03-03 11:01:48 +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-04-14 14:44:30 +01: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
2022-03-23 13:45:25 +01: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
2022-04-14 14:44:30 +01: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
2022-02-22 18:11:51 +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