@Test public void shouldCreateHealthIndicatorEvenBeforeGatewayStatusSupplierIsRegistered() { final StartedHealthIndicator actual = sutAutoConfig.gatewayStartedHealthIndicator(helperGatewayBridge); assertThat(actual).isNotNull(); }
@Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") public StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge) { return new StartedHealthIndicator(gatewayBridge::getGatewayStatus); }
StartedHealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") public StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge) { return new StartedHealthIndicator(gatewayBridge::getGatewayStatus); } }
StartedHealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") public StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge) { return new StartedHealthIndicator(gatewayBridge::getGatewayStatus); }  }
StartedHealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") public StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge) { return new StartedHealthIndicator(gatewayBridge::getGatewayStatus); }  @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge); }
StartedHealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") public StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge) { return new StartedHealthIndicator(gatewayBridge::getGatewayStatus); }  @Bean @ConditionalOnMissingBean(name = "gatewayStartedHealthIndicator") StartedHealthIndicator gatewayStartedHealthIndicator(SpringGatewayBridge gatewayBridge);  }