Examples of RichGaugeReader


Examples of org.springframework.boot.actuate.metrics.rich.RichGaugeReader

  public void richGaugePublicMetrics() {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
        RichGaugeReaderConfig.class, MetricRepositoryAutoConfiguration.class,
        PublicMetricsAutoConfiguration.class);

    RichGaugeReader richGaugeReader = context.getBean(RichGaugeReader.class);
    assertNotNull(richGaugeReader);
    given(richGaugeReader.findAll()).willReturn(
        Collections.singletonList(new RichGauge("bar", 3.7d)));

    RichGaugeReaderPublicMetrics publicMetrics = context
        .getBean(RichGaugeReaderPublicMetrics.class);
    assertNotNull(publicMetrics);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.