Polish metrics export auto-configuration tests

pull/12070/merge
Andy Wilkinson 7 years ago
parent b3c1b25274
commit 83626c7c12

@ -19,7 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.metrics.export.newrelic;
import java.util.Map; import java.util.Map;
import io.micrometer.core.instrument.Clock; import io.micrometer.core.instrument.Clock;
import io.micrometer.influx.InfluxMeterRegistry;
import io.micrometer.newrelic.NewRelicConfig; import io.micrometer.newrelic.NewRelicConfig;
import io.micrometer.newrelic.NewRelicMeterRegistry; import io.micrometer.newrelic.NewRelicMeterRegistry;
import org.junit.Test; import org.junit.Test;
@ -51,7 +50,7 @@ public class NewRelicMetricsExportAutoConfigurationTests {
@Test @Test
public void backsOffWithoutAClock() { public void backsOffWithoutAClock() {
this.runner.run((context) -> assertThat(context) this.runner.run((context) -> assertThat(context)
.doesNotHaveBean(InfluxMeterRegistry.class)); .doesNotHaveBean(NewRelicMeterRegistry.class));
} }
@Test @Test

@ -19,7 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.metrics.export.signalfx;
import java.util.Map; import java.util.Map;
import io.micrometer.core.instrument.Clock; import io.micrometer.core.instrument.Clock;
import io.micrometer.influx.InfluxMeterRegistry;
import io.micrometer.signalfx.SignalFxConfig; import io.micrometer.signalfx.SignalFxConfig;
import io.micrometer.signalfx.SignalFxMeterRegistry; import io.micrometer.signalfx.SignalFxMeterRegistry;
import org.junit.Test; import org.junit.Test;
@ -50,7 +49,7 @@ public class SignalFxMetricsExportAutoConfigurationTests {
@Test @Test
public void backsOffWithoutAClock() { public void backsOffWithoutAClock() {
this.runner.run((context) -> assertThat(context) this.runner.run((context) -> assertThat(context)
.doesNotHaveBean(InfluxMeterRegistry.class)); .doesNotHaveBean(SignalFxMeterRegistry.class));
} }
@Test @Test

@ -37,7 +37,7 @@ import static org.mockito.Mockito.mock;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
*/ */
public class SimplMetricsExportAutoConfigurationTests { public class SimpleMetricsExportAutoConfigurationTests {
private final ApplicationContextRunner runner = new ApplicationContextRunner() private final ApplicationContextRunner runner = new ApplicationContextRunner()
.withConfiguration( .withConfiguration(
Loading…
Cancel
Save