From 22bac1b54e1dcd0eb6ed34abadeaf0adf5370003 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 19 Feb 2018 21:22:19 +0000 Subject: [PATCH] Polish "Bind StatsD queue gauges" Closes gh-12124 --- .../export/statsd/StatsdMetricsExportAutoConfiguration.java | 1 + .../statsd/StatsdMetricsExportAutoConfigurationTests.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfiguration.java index ca39716f7b..0eeff49a10 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfiguration.java @@ -75,4 +75,5 @@ public class StatsdMetricsExportAutoConfiguration { public StatsdMetrics statsdMetrics() { return new StatsdMetrics(); } + } diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfigurationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfigurationTests.java index 53c4ea56b1..9348287e92 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdMetricsExportAutoConfigurationTests.java @@ -56,12 +56,13 @@ public class StatsdMetricsExportAutoConfigurationTests { } @Test - public void autoConfiguresItsConfigMeterRegistryAndNameMapper() { + public void autoConfiguresItsConfigMeterRegistryNameMapperAndMetrics() { this.contextRunner.withUserConfiguration(BaseConfiguration.class) .run((context) -> assertThat(context) .hasSingleBean(StatsdMeterRegistry.class) .hasSingleBean(StatsdConfig.class) - .hasSingleBean(HierarchicalNameMapper.class)); + .hasSingleBean(HierarchicalNameMapper.class) + .hasSingleBean(StatsdMetrics.class)); } @Test