mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 17:35:22 +00:00
Merge branch 'main' into 4.0.x
This commit is contained in:
+6
-8
@@ -51,21 +51,19 @@ class ReactiveManagementChildContextConfigurationTests {
|
||||
@Test
|
||||
// gh-45857
|
||||
void failsWithoutManagementServerPropertiesBeanFromParent() {
|
||||
new ReactiveWebApplicationContextRunner().run((parent) -> {
|
||||
new ReactiveWebApplicationContextRunner().withParent(parent)
|
||||
new ReactiveWebApplicationContextRunner()
|
||||
.run((parent) -> new ReactiveWebApplicationContextRunner().withParent(parent)
|
||||
.withUserConfiguration(ReactiveManagementChildContextConfiguration.class)
|
||||
.run((context) -> assertThat(context).hasFailed());
|
||||
});
|
||||
.run((context) -> assertThat(context).hasFailed()));
|
||||
}
|
||||
|
||||
@Test
|
||||
// gh-45857
|
||||
void succeedsWithManagementServerPropertiesBeanFromParent() {
|
||||
new ReactiveWebApplicationContextRunner().withBean(ManagementServerProperties.class).run((parent) -> {
|
||||
new ReactiveWebApplicationContextRunner().withParent(parent)
|
||||
new ReactiveWebApplicationContextRunner().withBean(ManagementServerProperties.class)
|
||||
.run((parent) -> new ReactiveWebApplicationContextRunner().withParent(parent)
|
||||
.withUserConfiguration(ReactiveManagementChildContextConfiguration.class)
|
||||
.run((context) -> assertThat(context).hasNotFailed());
|
||||
});
|
||||
.run((context) -> assertThat(context).hasNotFailed()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+6
-9
@@ -51,21 +51,18 @@ class ServletManagementChildContextConfigurationTests {
|
||||
@Test
|
||||
// gh-45857
|
||||
void failsWithoutManagementServerPropertiesBeanFromParent() {
|
||||
new WebApplicationContextRunner().run((parent) -> {
|
||||
new WebApplicationContextRunner().withParent(parent)
|
||||
.withUserConfiguration(ServletManagementChildContextConfiguration.class)
|
||||
.run((context) -> assertThat(context).hasFailed());
|
||||
});
|
||||
new WebApplicationContextRunner().run((parent) -> new WebApplicationContextRunner().withParent(parent)
|
||||
.withUserConfiguration(ServletManagementChildContextConfiguration.class)
|
||||
.run((context) -> assertThat(context).hasFailed()));
|
||||
}
|
||||
|
||||
@Test
|
||||
// gh-45857
|
||||
void succeedsWithManagementServerPropertiesBeanFromParent() {
|
||||
new WebApplicationContextRunner().withBean(ManagementServerProperties.class).run((parent) -> {
|
||||
new WebApplicationContextRunner().withParent(parent)
|
||||
new WebApplicationContextRunner().withBean(ManagementServerProperties.class)
|
||||
.run((parent) -> new WebApplicationContextRunner().withParent(parent)
|
||||
.withUserConfiguration(ServletManagementChildContextConfiguration.class)
|
||||
.run((context) -> assertThat(context).hasNotFailed());
|
||||
});
|
||||
.run((context) -> assertThat(context).hasNotFailed()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user