mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #22218 from XenoAmess
* gh-22218: Fix typos in test code Closes gh-22218
This commit is contained in:
commit
597d6acabc
@ -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;
|
@ -57,7 +57,7 @@ class SoftReferenceConfigurationPropertyCacheTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void enableEnablesCachingWithUnlimtedTimeToLive() {
|
||||
void enableEnablesCachingWithUnlimitedTimeToLive() {
|
||||
this.cache.enable();
|
||||
get(this.cache).assertCounts(0, 0);
|
||||
tick(Duration.ofDays(300));
|
||||
|
@ -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…
Reference in New Issue
Block a user