From 903cdf3ddd7907c06797a05f0e639ee29639b495 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 14 Nov 2015 13:27:15 +0900 Subject: [PATCH] Polish --- .../boot/devtools/tunnel/server/HttpTunnelServer.java | 2 +- .../java/org/springframework/boot/SpringApplicationTests.java | 4 ++-- .../boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java | 2 +- .../boot/jta/bitronix/PoolingDataSourceBeanTests.java | 2 +- .../boot/logging/AbstractLoggingSystemTests.java | 2 +- .../boot/logging/logback/LevelRemappingAppenderTests.java | 2 +- .../java/org/springframework/boot/redis/RedisTestServer.java | 2 +- .../org/springframework/boot/test/TestRestTemplateTests.java | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java index 89133ecd4a4..829e87bf5f6 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java @@ -375,7 +375,7 @@ public class HttpTunnelServer { } /** - * Start asynchronous support or if unavailble return {@code null} to cause + * Start asynchronous support or if unavailable return {@code null} to cause * {@link #waitForResponse()} to block. * @return the async request control */ diff --git a/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java b/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java index c92f660cfe6..90e268e7997 100644 --- a/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java @@ -299,13 +299,13 @@ public class SpringApplicationTests { SpringApplication application = new SpringApplication(ExampleConfig.class); application.setWebEnvironment(false); final AtomicReference reference = new AtomicReference(); - class InitalizerListener implements ApplicationListener { + class InitializerListener implements ApplicationListener { @Override public void onApplicationEvent(ContextRefreshedEvent event) { reference.set(event.getApplicationContext()); } } - application.setListeners(Arrays.asList(new InitalizerListener())); + application.setListeners(Arrays.asList(new InitializerListener())); this.context = application.run("--foo=bar"); assertThat(this.context, sameInstance(reference.get())); // Custom initializers do not switch off the defaults diff --git a/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java b/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java index 4be1e5e7578..595efbb3d19 100644 --- a/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java @@ -41,7 +41,7 @@ public class PoolingConnectionFactoryBeanTests { }; @Test - public void sensbileDefaults() throws Exception { + public void sensibleDefaults() throws Exception { assertThat(this.bean.getMaxPoolSize(), equalTo(10)); assertThat(this.bean.getTestConnections(), equalTo(true)); assertThat(this.bean.getAutomaticEnlistingEnabled(), equalTo(true)); diff --git a/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingDataSourceBeanTests.java b/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingDataSourceBeanTests.java index 16cfa9f734f..20f02b83c9f 100644 --- a/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingDataSourceBeanTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingDataSourceBeanTests.java @@ -39,7 +39,7 @@ public class PoolingDataSourceBeanTests { private PoolingDataSourceBean bean = new PoolingDataSourceBean(); @Test - public void sensbileDefaults() throws Exception { + public void sensibleDefaults() throws Exception { assertThat(this.bean.getMaxPoolSize(), equalTo(10)); assertThat(this.bean.getAutomaticEnlistingEnabled(), equalTo(true)); assertThat(this.bean.isEnableJdbc4ConnectionTest(), equalTo(true)); diff --git a/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java b/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java index eaa425b8afc..275c801e95d 100644 --- a/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java @@ -41,7 +41,7 @@ public abstract class AbstractLoggingSystemTests { private String originalTempFolder; @Before - public void configureTempdir() throws IOException { + public void configureTempDir() throws IOException { this.originalTempFolder = System.getProperty(JAVA_IO_TMPDIR); System.setProperty(JAVA_IO_TMPDIR, this.temp.newFolder().getAbsolutePath()); } diff --git a/spring-boot/src/test/java/org/springframework/boot/logging/logback/LevelRemappingAppenderTests.java b/spring-boot/src/test/java/org/springframework/boot/logging/logback/LevelRemappingAppenderTests.java index 40b5d0bce70..aeb25992a8d 100644 --- a/spring-boot/src/test/java/org/springframework/boot/logging/logback/LevelRemappingAppenderTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/logging/logback/LevelRemappingAppenderTests.java @@ -70,7 +70,7 @@ public class LevelRemappingAppenderTests { } @Test - public void defaltRemapsInfo() throws Exception { + public void defaultRemapsInfo() throws Exception { this.appender.append(mockLogEvent(Level.INFO)); verify(this.logger).callAppenders(this.logCaptor.capture()); assertThat(this.logCaptor.getValue().getLevel(), equalTo(Level.DEBUG)); diff --git a/spring-boot/src/test/java/org/springframework/boot/redis/RedisTestServer.java b/spring-boot/src/test/java/org/springframework/boot/redis/RedisTestServer.java index ba9c7db3710..772de98b3e7 100644 --- a/spring-boot/src/test/java/org/springframework/boot/redis/RedisTestServer.java +++ b/spring-boot/src/test/java/org/springframework/boot/redis/RedisTestServer.java @@ -47,7 +47,7 @@ public class RedisTestServer implements TestRule { return new RedisStatement(base, this.connectionFactory); } catch (Exception ex) { - logger.error("No Redis server availble", ex); + logger.error("No Redis server available", ex); return new SkipStatement(); } } diff --git a/spring-boot/src/test/java/org/springframework/boot/test/TestRestTemplateTests.java b/spring-boot/src/test/java/org/springframework/boot/test/TestRestTemplateTests.java index e2d06652b8b..df95495a732 100644 --- a/spring-boot/src/test/java/org/springframework/boot/test/TestRestTemplateTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/test/TestRestTemplateTests.java @@ -38,7 +38,7 @@ public class TestRestTemplateTests { @Test public void simple() { - // The Apache client is on the classpath so we get the fully-leaded factory + // The Apache client is on the classpath so we get the fully-fledged factory assertTrue(new TestRestTemplate() .getRequestFactory() instanceof HttpComponentsClientHttpRequestFactory); }