commit
32d30a0a26
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue