Fix build failure

This test definitely doesn't need Aspect processing since the project
doesn't have a dependency on `aspectjweaver`

Closes gh-9880
pull/9890/merge
Stephane Nicoll 7 years ago
parent b9b284d3d0
commit 92e48f6ee2

@ -28,7 +28,6 @@ import org.springframework.boot.actuate.metrics.buffer.BufferGaugeService;
import org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices; import org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices;
import org.springframework.boot.actuate.metrics.reader.MetricReader; import org.springframework.boot.actuate.metrics.reader.MetricReader;
import org.springframework.boot.actuate.metrics.reader.PrefixMetricReader; import org.springframework.boot.actuate.metrics.reader.PrefixMetricReader;
import org.springframework.boot.autoconfigure.aop.AopAutoConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -70,7 +69,7 @@ public class MetricRepositoryAutoConfigurationTests {
public void dropwizardInstalledIfPresent() { public void dropwizardInstalledIfPresent() {
this.context = new AnnotationConfigApplicationContext( this.context = new AnnotationConfigApplicationContext(
MetricsDropwizardAutoConfiguration.class, MetricsDropwizardAutoConfiguration.class,
MetricRepositoryAutoConfiguration.class, AopAutoConfiguration.class); MetricRepositoryAutoConfiguration.class);
GaugeService gaugeService = this.context.getBean(GaugeService.class); GaugeService gaugeService = this.context.getBean(GaugeService.class);
assertThat(gaugeService).isNotNull(); assertThat(gaugeService).isNotNull();
gaugeService.submit("foo", 2.7); gaugeService.submit("foo", 2.7);

Loading…
Cancel
Save