Package org.springframework.boot.actuate.metrics.reader

Examples of org.springframework.boot.actuate.metrics.reader.MetricReader.findAll()


  public void exposesMetrics() {
    List<Metric<?>> metrics = new ArrayList<Metric<?>>();
    metrics.add(mock(Metric.class));
    metrics.add(mock(Metric.class));
    MetricReader reader = mock(MetricReader.class);
    given(reader.findAll()).willReturn(metrics);
    MetricReaderPublicMetrics publicMetrics = new MetricReaderPublicMetrics(reader);
    assertEquals(metrics, publicMetrics.metrics());
  }

}
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.