Browse Source

Fix typos in test code

See gh-22218
pull/22256/head
XenoAmess 6 years ago committed by Andy Wilkinson
parent
commit
66dc24062f
  1. 4
      spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSystemEnvironmentPropertyTests.java
  2. 2
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java
  3. 2
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/AbstractJettyServletWebServerFactoryTests.java

4
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/SpringBootTestWithActiveProfilesAndSytemEnvironmentPropertyTests.java → 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; @@ -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;

2
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCacheTests.java

@ -57,7 +57,7 @@ class SoftReferenceConfigurationPropertyCacheTests { @@ -57,7 +57,7 @@ class SoftReferenceConfigurationPropertyCacheTests {
}
@Test
void enableEnablesCachingWithUnlimtedTimeToLive() {
void enableEnablesCachingWithUnlimitedTimeToLive() {
this.cache.enable();
get(this.cache).assertCounts(0, 0);
tick(Duration.ofDays(300));

2
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 @@ -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");
}
}

Loading…
Cancel
Save