Package org.springframework.boot.actuate.endpoint

Examples of org.springframework.boot.actuate.endpoint.HealthEndpoint.invoke()


  public void healthEndpoint() {
    load(EmbeddedDataSourceConfiguration.class, EndpointAutoConfiguration.class,
        HealthIndicatorAutoConfiguration.class);
    HealthEndpoint bean = this.context.getBean(HealthEndpoint.class);
    assertNotNull(bean);
    Health result = bean.invoke();
    assertNotNull(result);
    assertTrue("Wrong result: " + result, result.getDetails().containsKey("db"));
  }

  @Test
View Full Code Here


  @Test
  public void healthEndpointWithDefaultHealthIndicator() {
    load(EndpointAutoConfiguration.class, HealthIndicatorAutoConfiguration.class);
    HealthEndpoint bean = this.context.getBean(HealthEndpoint.class);
    assertNotNull(bean);
    Health result = bean.invoke();
    assertNotNull(result);
  }

  @Test
  public void metricEndpointsHasSystemMetricsByDefault() {
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.