mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Fix typos
Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com> See gh-51590
This commit is contained in:
committed by
Andy Wilkinson
parent
2a30bbc70a
commit
528c8bd1ea
+1
-1
@@ -75,7 +75,7 @@ class JettyServletWebServerAutoConfigurationTests extends AbstractServletWebServ
|
||||
}
|
||||
|
||||
@Test
|
||||
void jettyWebSocketUpgradeFilterIsAddedToServletContex() {
|
||||
void jettyWebSocketUpgradeFilterIsAddedToServletContext() {
|
||||
this.serverRunner.run((context) -> {
|
||||
ServletContext servletContext = context.getServletContext();
|
||||
assertThat(servletContext).isNotNull();
|
||||
|
||||
+2
-2
@@ -44,8 +44,8 @@ public final class ConnectionFactoryUnwrapper {
|
||||
*/
|
||||
public static ConnectionFactory unwrapCaching(ConnectionFactory connectionFactory) {
|
||||
if (connectionFactory instanceof CachingConnectionFactory cachingConnectionFactory) {
|
||||
ConnectionFactory unwrapedConnectionFactory = cachingConnectionFactory.getTargetConnectionFactory();
|
||||
return (unwrapedConnectionFactory != null) ? unwrapCaching(unwrapedConnectionFactory) : connectionFactory;
|
||||
ConnectionFactory unwrappedConnectionFactory = cachingConnectionFactory.getTargetConnectionFactory();
|
||||
return (unwrappedConnectionFactory != null) ? unwrapCaching(unwrappedConnectionFactory) : connectionFactory;
|
||||
}
|
||||
return connectionFactory;
|
||||
}
|
||||
|
||||
+1
-1
@@ -197,7 +197,7 @@ class OtlpMetricsPropertiesConfigAdapterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldUseApplicationGroupIfServiceNamspaceIsNotSet() {
|
||||
void shouldUseApplicationGroupIfServiceNamespaceIsNotSet() {
|
||||
this.environment.setProperty("spring.application.group", "alpha");
|
||||
assertThat(createAdapter().resourceAttributes()).containsEntry("service.namespace", "alpha");
|
||||
}
|
||||
|
||||
+3
-3
@@ -55,9 +55,9 @@ class StartupTimeMetricsListenerAutoConfigurationTests {
|
||||
SimpleMeterRegistry registry = context.getBean(SimpleMeterRegistry.class);
|
||||
context.publishEvent(new ApplicationStartedEvent(new SpringApplication(), new String[0],
|
||||
context.getSourceApplicationContext(), Duration.ofMillis(1500)));
|
||||
TimeGauge startedTimeGage = registry.find("application.started.time").timeGauge();
|
||||
assertThat(startedTimeGage).isNotNull();
|
||||
assertThat(startedTimeGage.value(TimeUnit.MILLISECONDS)).isEqualTo(1500L);
|
||||
TimeGauge startedTimeGauge = registry.find("application.started.time").timeGauge();
|
||||
assertThat(startedTimeGauge).isNotNull();
|
||||
assertThat(startedTimeGauge.value(TimeUnit.MILLISECONDS)).isEqualTo(1500L);
|
||||
context.publishEvent(new ApplicationReadyEvent(new SpringApplication(), new String[0],
|
||||
context.getSourceApplicationContext(), Duration.ofMillis(2000)));
|
||||
TimeGauge readyTimeGage = registry.find("application.ready.time").timeGauge();
|
||||
|
||||
Reference in New Issue
Block a user