From 92e48f6ee2a4d7ce9475e1438e44e8b73370fc12 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 28 Jul 2017 13:43:58 +0200 Subject: [PATCH] Fix build failure This test definitely doesn't need Aspect processing since the project doesn't have a dependency on `aspectjweaver` Closes gh-9880 --- .../autoconfigure/MetricRepositoryAutoConfigurationTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfigurationTests.java index 7a305f51e7..84c2dfb13d 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfigurationTests.java @@ -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.reader.MetricReader; 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.Bean; import org.springframework.context.annotation.Configuration; @@ -70,7 +69,7 @@ public class MetricRepositoryAutoConfigurationTests { public void dropwizardInstalledIfPresent() { this.context = new AnnotationConfigApplicationContext( MetricsDropwizardAutoConfiguration.class, - MetricRepositoryAutoConfiguration.class, AopAutoConfiguration.class); + MetricRepositoryAutoConfiguration.class); GaugeService gaugeService = this.context.getBean(GaugeService.class); assertThat(gaugeService).isNotNull(); gaugeService.submit("foo", 2.7);