|
|
|
@ -47,6 +47,7 @@ import org.springframework.boot.actuate.health.ReactiveHealthIndicator; |
|
|
|
import org.springframework.boot.actuate.health.Status; |
|
|
|
import org.springframework.boot.actuate.health.Status; |
|
|
|
import org.springframework.boot.actuate.health.StatusAggregator; |
|
|
|
import org.springframework.boot.actuate.health.StatusAggregator; |
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigurations; |
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigurations; |
|
|
|
|
|
|
|
import org.springframework.boot.test.context.FilteredClassLoader; |
|
|
|
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner; |
|
|
|
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner; |
|
|
|
import org.springframework.boot.test.context.runner.WebApplicationContextRunner; |
|
|
|
import org.springframework.boot.test.context.runner.WebApplicationContextRunner; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
@ -293,6 +294,12 @@ class HealthEndpointAutoConfigurationTests { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test // gh-18570
|
|
|
|
|
|
|
|
void runDoesNotFailWithoutReactorOnClasspath() { |
|
|
|
|
|
|
|
this.contextRunner.withClassLoader(new FilteredClassLoader(Mono.class.getPackage().getName())) |
|
|
|
|
|
|
|
.run((context) -> assertThat(context).hasNotFailed()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
static class HealthIndicatorsConfiguration { |
|
|
|
static class HealthIndicatorsConfiguration { |
|
|
|
|
|
|
|
|
|
|
|
|