Merge pull request #4488 from izeye/polish-20151114

* pr/4488:
  Polish
This commit is contained in:
Phillip Webb 2015-11-13 21:45:49 -08:00
commit 32d30a0a26
8 changed files with 9 additions and 9 deletions

View File

@ -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
*/

View File

@ -299,13 +299,13 @@ public class SpringApplicationTests {
SpringApplication application = new SpringApplication(ExampleConfig.class);
application.setWebEnvironment(false);
final AtomicReference<ApplicationContext> reference = new AtomicReference<ApplicationContext>();
class InitalizerListener implements ApplicationListener<ContextRefreshedEvent> {
class InitializerListener implements ApplicationListener<ContextRefreshedEvent> {
@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

View File

@ -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));

View File

@ -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));

View File

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

View File

@ -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));

View File

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

View File

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