Skip to content

Commit 5e74bdf

Browse files
committed
<refactor>: refactor the lambda expression to avoid checkstyle error.
1 parent fa18da3 commit 5e74bdf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurationsSenderConfigurationTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ class ZipkinConfigurationsSenderConfigurationTests {
5454

5555
@Test
5656
void shouldSupplyBeans() {
57-
this.contextRunner.run((context) -> {
58-
assertThat(context).hasSingleBean(BytesMessageSender.class);
59-
});
57+
this.contextRunner.run((context) -> assertThat(context).hasSingleBean(BytesMessageSender.class));
6058
}
6159

6260
@Test

0 commit comments

Comments
 (0)