Skip to content

Commit e9e6287

Browse files
committed
<adjust>: run format test command to be passed.
1 parent f4db7df commit e9e6287

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
*
5353
* @author Moritz Halbritter
5454
* @author Stefan Bratanov
55+
* @author Wick Dynex
5556
*/
5657
class ZipkinConfigurations {
5758

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
* Tests for {@link SenderConfiguration}.
5353
*
5454
* @author Moritz Halbritter
55+
* @author Wick Dynex
5556
*/
5657
@SuppressWarnings({ "deprecation", "removal" })
5758
class ZipkinConfigurationsSenderConfigurationTests {
@@ -65,7 +66,6 @@ class ZipkinConfigurationsSenderConfigurationTests {
6566
private final WebApplicationContextRunner servletContextRunner = new WebApplicationContextRunner()
6667
.withConfiguration(AutoConfigurations.of(DefaultEncodingConfiguration.class, SenderConfiguration.class));
6768

68-
// passed
6969
@Test
7070
void shouldSupplyDefaultHttpClientSenderBeans() {
7171
this.contextRunner.run((context) -> {
@@ -77,7 +77,6 @@ void shouldSupplyDefaultHttpClientSenderBeans() {
7777
});
7878
}
7979

80-
// passed
8180
@Test
8281
void shouldUseUrlSenderIfHttpSenderIsNotAvailable() {
8382
this.contextRunner.withUserConfiguration(UrlConnectionSenderConfiguration.class)
@@ -89,7 +88,6 @@ void shouldUseUrlSenderIfHttpSenderIsNotAvailable() {
8988
});
9089
}
9190

92-
// passed
9391
@Test
9492
void shouldPreferWebClientSenderIfWebApplicationIsReactiveAndHttpClientSenderIsNotAvailable() {
9593
this.reactiveContextRunner.withUserConfiguration(RestTemplateConfiguration.class, WebClientConfiguration.class)
@@ -103,7 +101,6 @@ void shouldPreferWebClientSenderIfWebApplicationIsReactiveAndHttpClientSenderIsN
103101
});
104102
}
105103

106-
// passed
107104
@Test
108105
void shouldPreferWebClientSenderIfWebApplicationIsServletAndHttpClientSenderIsNotAvailable() {
109106
this.servletContextRunner.withUserConfiguration(RestTemplateConfiguration.class, WebClientConfiguration.class)
@@ -115,7 +112,6 @@ void shouldPreferWebClientSenderIfWebApplicationIsServletAndHttpClientSenderIsNo
115112
});
116113
}
117114

118-
// passed
119115
@Test
120116
void shouldPreferWebClientInNonWebApplicationAndHttpClientSenderIsNotAvailable() {
121117
this.contextRunner.withUserConfiguration(RestTemplateConfiguration.class, WebClientConfiguration.class)
@@ -127,7 +123,6 @@ void shouldPreferWebClientInNonWebApplicationAndHttpClientSenderIsNotAvailable()
127123
});
128124
}
129125

130-
// passed
131126
@Test
132127
void willUseRestTemplateInNonWebApplicationIfSenderAndWebClientAreNotAvailable() {
133128
this.contextRunner.withUserConfiguration(RestTemplateConfiguration.class)
@@ -139,7 +134,6 @@ void willUseRestTemplateInNonWebApplicationIfSenderAndWebClientAreNotAvailable()
139134
});
140135
}
141136

142-
// passed
143137
@Test
144138
void willUseRestTemplateInServletWebApplicationIfHttpClientSenderAndWebClientNotAvailable() {
145139
this.servletContextRunner.withUserConfiguration(RestTemplateConfiguration.class)
@@ -151,7 +145,6 @@ void willUseRestTemplateInServletWebApplicationIfHttpClientSenderAndWebClientNot
151145
});
152146
}
153147

154-
// passed
155148
@Test
156149
void willUseRestTemplateInReactiveWebApplicationIfHttpClientSenderAndWebClientAreNotAvailable() {
157150
this.reactiveContextRunner.withUserConfiguration(RestTemplateConfiguration.class)
@@ -163,7 +156,6 @@ void willUseRestTemplateInReactiveWebApplicationIfHttpClientSenderAndWebClientAr
163156
});
164157
}
165158

166-
// passed
167159
@Test
168160
void shouldNotUseWebClientSenderIfNoBuilderIsAvailable() {
169161
this.reactiveContextRunner.run((context) -> {
@@ -173,7 +165,6 @@ void shouldNotUseWebClientSenderIfNoBuilderIsAvailable() {
173165
});
174166
}
175167

176-
// passed
177168
@Test
178169
void shouldBackOffOnCustomBeans() {
179170
this.contextRunner.withUserConfiguration(CustomConfiguration.class).run((context) -> {
@@ -182,7 +173,6 @@ void shouldBackOffOnCustomBeans() {
182173
});
183174
}
184175

185-
// passed
186176
@Test
187177
void shouldApplyZipkinRestTemplateBuilderCustomizers() throws IOException {
188178
try (MockWebServer mockWebServer = new MockWebServer()) {
@@ -202,17 +192,15 @@ void shouldApplyZipkinRestTemplateBuilderCustomizers() throws IOException {
202192
}
203193
}
204194

205-
// passed
206195
@Test
207196
void shouldUseCustomHttpEndpointSupplierFactory() {
208197
this.contextRunner.withUserConfiguration(CustomHttpEndpointSupplierFactoryConfiguration.class)
209-
.withClassLoader(new FilteredClassLoader(HttpClient.class, WebClient.class, RestTemplate.class))
198+
.withClassLoader(new FilteredClassLoader(HttpClient.class, WebClient.class, RestTemplate.class))
210199
.run((context) -> assertThat(context.getBean(URLConnectionSender.class))
211200
.extracting("delegate.endpointSupplier")
212201
.isInstanceOf(CustomHttpEndpointSupplier.class));
213202
}
214203

215-
// passed
216204
@Test
217205
void shouldUseCustomHttpEndpointSupplierFactoryWhenReactive() {
218206
this.reactiveContextRunner.withUserConfiguration(WebClientConfiguration.class)
@@ -222,7 +210,6 @@ void shouldUseCustomHttpEndpointSupplierFactoryWhenReactive() {
222210
.isInstanceOf(CustomHttpEndpointSupplier.class));
223211
}
224212

225-
// passed
226213
@Test
227214
void shouldUseCustomHttpEndpointSupplierFactoryWhenRestTemplate() {
228215
this.contextRunner.withUserConfiguration(RestTemplateConfiguration.class)

0 commit comments

Comments
 (0)