use of org.springframework.boot.actuate.health.ReactiveHealthContributor in project spring-boot by spring-projects.
the class AutoConfiguredReactiveHealthContributorRegistryTests method registerContributorWithGroupNameThrowsException.
@Test
void registerContributorWithGroupNameThrowsException() {
ReactiveHealthContributorRegistry registry = new AutoConfiguredReactiveHealthContributorRegistry(Collections.emptyMap(), Arrays.asList("spring", "boot"));
assertThatIllegalStateException().isThrownBy(() -> registry.registerContributor("spring", mock(ReactiveHealthContributor.class))).withMessage("ReactiveHealthContributor with name \"spring\" clashes with group");
}
Aggregations