use of org.springframework.boot.actuate.neo4j.Neo4jHealthIndicator in project spring-boot by spring-projects.
the class Neo4jHealthContributorAutoConfigurationTests method defaultIndicatorCanBeReplaced.
@Test
void defaultIndicatorCanBeReplaced() {
this.contextRunner.withUserConfiguration(Neo4jConfiguration.class, CustomIndicatorConfiguration.class).run((context) -> {
assertThat(context).hasBean("neo4jHealthIndicator");
Health health = context.getBean("neo4jHealthIndicator", HealthIndicator.class).health();
assertThat(health.getDetails()).containsOnly(entry("test", true));
});
}
Aggregations