This commit is contained in:
Brian Clozel
2017-12-12 16:41:44 +01:00
parent 9cb64de53b
commit 175f451b0f

View File

@@ -43,7 +43,7 @@ public class MeterRegistryConfigurerTests {
.withPropertyValues("metrics.use-global-registry=false")
.run((context) -> assertThat(context.getBean(MeterRegistry.class)
.find("jvm.memory.used").tags("region", "us-east-1").gauge())
.isPresent());
.isPresent());
}
@Test
@@ -65,7 +65,6 @@ public class MeterRegistryConfigurerTests {
return (registry) -> registry.config().commonTags("region", "us-east-1");
}
private class MyThing {}
@Bean
public MyThing myThing(MeterRegistry registry) {
@@ -73,6 +72,9 @@ public class MeterRegistryConfigurerTests {
return new MyThing();
}
class MyThing {
}
}
}