Package org.springframework.boot.actuate.endpoint

Examples of org.springframework.boot.actuate.endpoint.HealthEndpoint


  }

  @Bean
  @ConditionalOnMissingBean
  public HealthEndpoint healthEndpoint() {
    return new HealthEndpoint(this.healthAggregator, this.healthIndicators);
  }
View Full Code Here


  @Test
  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"));
  }
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);
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.endpoint.HealthEndpoint

Copyright © 2018 www.massapicom. 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.