Fix typos

Closes gh-3809
pull/3809/merge
izeye 9 years ago committed by Stephane Nicoll
parent 69fcae6b44
commit e2119d3329

@ -38,7 +38,7 @@ import org.springframework.context.annotation.Conditional;
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Conditional(OnEnabledHealthIndicatorCondition.class)
public @interface ConditionalOnEnablednHealthIndicator {
public @interface ConditionalOnEnabledHealthIndicator {
/**
* The name of the health indicator.

@ -153,7 +153,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnClass(JdbcTemplate.class)
@ConditionalOnBean(DataSource.class)
@ConditionalOnEnablednHealthIndicator("db")
@ConditionalOnEnabledHealthIndicator("db")
public static class DataSourcesHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<DataSourceHealthIndicator, DataSource>
implements InitializingBean {
@ -193,7 +193,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(MongoTemplate.class)
@ConditionalOnEnablednHealthIndicator("mongo")
@ConditionalOnEnabledHealthIndicator("mongo")
public static class MongoHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<MongoHealthIndicator, MongoTemplate> {
@ -210,7 +210,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(RedisConnectionFactory.class)
@ConditionalOnEnablednHealthIndicator("redis")
@ConditionalOnEnabledHealthIndicator("redis")
public static class RedisHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration<RedisHealthIndicator, RedisConnectionFactory> {
@ -228,7 +228,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(RabbitTemplate.class)
@ConditionalOnEnablednHealthIndicator("rabbit")
@ConditionalOnEnabledHealthIndicator("rabbit")
public static class RabbitHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<RabbitHealthIndicator, RabbitTemplate> {
@ -245,7 +245,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(SolrServer.class)
@ConditionalOnEnablednHealthIndicator("solr")
@ConditionalOnEnabledHealthIndicator("solr")
public static class SolrHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<SolrHealthIndicator, SolrServer> {
@ -261,7 +261,7 @@ public class HealthIndicatorAutoConfiguration {
}
@Configuration
@ConditionalOnEnablednHealthIndicator("diskspace")
@ConditionalOnEnabledHealthIndicator("diskspace")
public static class DiskSpaceHealthIndicatorConfiguration {
@Bean
@ -280,7 +280,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(JavaMailSenderImpl.class)
@ConditionalOnEnablednHealthIndicator("mail")
@ConditionalOnEnabledHealthIndicator("mail")
public static class MailHealthIndicatorConfiguration
extends
CompositeHealthIndicatorConfiguration<MailHealthIndicator, JavaMailSenderImpl> {
@ -298,7 +298,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(ConnectionFactory.class)
@ConditionalOnEnablednHealthIndicator("jms")
@ConditionalOnEnabledHealthIndicator("jms")
public static class JmsHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<JmsHealthIndicator, ConnectionFactory> {
@ -315,7 +315,7 @@ public class HealthIndicatorAutoConfiguration {
@Configuration
@ConditionalOnBean(Client.class)
@ConditionalOnEnablednHealthIndicator("elasticsearch")
@ConditionalOnEnabledHealthIndicator("elasticsearch")
@EnableConfigurationProperties(ElasticsearchHealthIndicatorProperties.class)
public static class ElasticsearchHealthIndicatorConfiguration extends
CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator, Client> {

@ -31,7 +31,7 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
*/
class OnEnabledHealthIndicatorCondition extends SpringBootCondition {
private static final String ANNOTATION_CLASS = ConditionalOnEnablednHealthIndicator.class
private static final String ANNOTATION_CLASS = ConditionalOnEnabledHealthIndicator.class
.getName();
@Override

@ -122,7 +122,7 @@ public class HealthIndicatorAutoConfigurationTests {
this.context.register(HealthIndicatorAutoConfiguration.class,
ManagementServerProperties.class);
EnvironmentTestUtils.addEnvironment(this.context,
"management.health.enabled:false",
"management.health.defaults.enabled:false",
"management.health.diskspace.enabled:true");
this.context.refresh();
Map<String, HealthIndicator> beans = this.context

@ -114,7 +114,7 @@ public abstract class AbstractConfigurableEmbeddedServletContainer implements
}
if (!contextPath.startsWith("/") || contextPath.endsWith("/")) {
throw new IllegalArgumentException(
"ContextPath must start with '/ and not end with '/'");
"ContextPath must start with '/' and not end with '/'");
}
}
}

@ -245,14 +245,14 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
@Test
public void contextPathMustStartWithSlash() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
getFactory().setContextPath("missingslash");
}
@Test
public void contextPathMustNotEndWithSlash() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
getFactory().setContextPath("extraslash/");
}

Loading…
Cancel
Save