From 66dc24062ff12968abed39a8275f15e00bde63ea Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Fri, 3 Jul 2020 23:04:49 +0800 Subject: [PATCH] Fix typos in test code See gh-22218 --- ...tWithActiveProfilesAndSystemEnvironmentPropertyTests.java} | 4 ++-- .../source/SoftReferenceConfigurationPropertyCacheTests.java | 2 +- .../jetty/AbstractJettyServletWebServerFactoryTests.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/{SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.java => SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.java} (95%) diff --git a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.java b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.java similarity index 95% rename from spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.java rename to spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.java index fabc8db33cc..c5817e72b2c 100644 --- a/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.java +++ b/spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.java @@ -43,8 +43,8 @@ import static org.assertj.core.api.Assertions.assertThat; */ @SpringBootTest @ActiveProfiles({ "test1", "test2" }) -@ContextConfiguration(loader = SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.Loader.class) -public class SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests { +@ContextConfiguration(loader = SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.Loader.class) +public class SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests { @Autowired private Environment environment; diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java index 581b2892cdb..7eb604bef8f 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java @@ -57,7 +57,7 @@ class SoftReferenceConfigurationPropertyCacheTests { } @Test - void enableEnablesCachingWithUnlimtedTimeToLive() { + void enableEnablesCachingWithUnlimitedTimeToLive() { this.cache.enable(); get(this.cache).assertCounts(0, 0); tick(Duration.ofDays(300)); diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/AbstractJettyServletWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/AbstractJettyServletWebServerFactoryTests.java index 3c38319904b..8222ba390d7 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/AbstractJettyServletWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/AbstractJettyServletWebServerFactoryTests.java @@ -116,7 +116,7 @@ abstract class AbstractJettyServletWebServerFactoryTests extends AbstractServlet if (handler instanceof HandlerWrapper) { return findWebAppContext(((HandlerWrapper) handler).getHandler()); } - throw new IllegalStateException("No WebAppCotext found"); + throw new IllegalStateException("No WebAppContext found"); } }