File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -51,21 +51,19 @@ void accessLogCustomizerWithNullPrefix() {
51
51
@ Test
52
52
// gh-45857
53
53
void failsWithoutManagementServerPropertiesBeanFromParent () {
54
- new ReactiveWebApplicationContextRunner (). run (( parent ) -> {
55
- new ReactiveWebApplicationContextRunner ().withParent (parent )
54
+ new ReactiveWebApplicationContextRunner ()
55
+ . run (( parent ) -> new ReactiveWebApplicationContextRunner ().withParent (parent )
56
56
.withUserConfiguration (ReactiveManagementChildContextConfiguration .class )
57
- .run ((context ) -> assertThat (context ).hasFailed ());
58
- });
57
+ .run ((context ) -> assertThat (context ).hasFailed ()));
59
58
}
60
59
61
60
@ Test
62
61
// gh-45857
63
62
void succeedsWithManagementServerPropertiesBeanFromParent () {
64
- new ReactiveWebApplicationContextRunner ().withBean (ManagementServerProperties .class ). run (( parent ) -> {
65
- new ReactiveWebApplicationContextRunner ().withParent (parent )
63
+ new ReactiveWebApplicationContextRunner ().withBean (ManagementServerProperties .class )
64
+ . run (( parent ) -> new ReactiveWebApplicationContextRunner ().withParent (parent )
66
65
.withUserConfiguration (ReactiveManagementChildContextConfiguration .class )
67
- .run ((context ) -> assertThat (context ).hasNotFailed ());
68
- });
66
+ .run ((context ) -> assertThat (context ).hasNotFailed ()));
69
67
}
70
68
71
69
}
Original file line number Diff line number Diff line change @@ -51,21 +51,18 @@ void accessLogCustomizerWithNullPrefix() {
51
51
@ Test
52
52
// gh-45857
53
53
void failsWithoutManagementServerPropertiesBeanFromParent () {
54
- new WebApplicationContextRunner ().run ((parent ) -> {
55
- new WebApplicationContextRunner ().withParent (parent )
56
- .withUserConfiguration (ServletManagementChildContextConfiguration .class )
57
- .run ((context ) -> assertThat (context ).hasFailed ());
58
- });
54
+ new WebApplicationContextRunner ().run ((parent ) -> new WebApplicationContextRunner ().withParent (parent )
55
+ .withUserConfiguration (ServletManagementChildContextConfiguration .class )
56
+ .run ((context ) -> assertThat (context ).hasFailed ()));
59
57
}
60
58
61
59
@ Test
62
60
// gh-45857
63
61
void succeedsWithManagementServerPropertiesBeanFromParent () {
64
- new WebApplicationContextRunner ().withBean (ManagementServerProperties .class ). run (( parent ) -> {
65
- new WebApplicationContextRunner ().withParent (parent )
62
+ new WebApplicationContextRunner ().withBean (ManagementServerProperties .class )
63
+ . run (( parent ) -> new WebApplicationContextRunner ().withParent (parent )
66
64
.withUserConfiguration (ServletManagementChildContextConfiguration .class )
67
- .run ((context ) -> assertThat (context ).hasNotFailed ());
68
- });
65
+ .run ((context ) -> assertThat (context ).hasNotFailed ()));
69
66
}
70
67
71
68
}
You can’t perform that action at this time.
0 commit comments