@Test public void testWithNoConnector() { SeContainerInitializer initializer = SeContainerInitializer.newInstance().disableDiscovery(); initializer.addBeanClasses(HealthCenter.class, SmallRyeReactiveMessagingReadinessCheck.class); SeContainer container = initializer.initialize(); SmallRyeReactiveMessagingReadinessCheck check = container.getBeanManager().createInstance() .select(SmallRyeReactiveMessagingReadinessCheck.class, Readiness.Literal.INSTANCE).get(); assertThat(check.call().getState()).isEqualTo(HealthCheckResponse.State.UP); assertThat(check.call().getData()).isEmpty(); }
@Override public HealthCheckResponse call() { HealthReport report = health.getReadiness(); return HealthChecks.getHealthCheck(report, "readiness check"); }
SmallRyeReactiveMessagingReadinessCheck implements HealthCheck { @Override public HealthCheckResponse call() { HealthReport report = health.getReadiness(); return HealthChecks.getHealthCheck(report, "readiness check"); } }
SmallRyeReactiveMessagingReadinessCheck implements HealthCheck { @Override public HealthCheckResponse call() { HealthReport report = health.getReadiness(); return HealthChecks.getHealthCheck(report, "readiness check"); }  }
SmallRyeReactiveMessagingReadinessCheck implements HealthCheck { @Override public HealthCheckResponse call() { HealthReport report = health.getReadiness(); return HealthChecks.getHealthCheck(report, "readiness check"); }  @Override HealthCheckResponse call(); }
SmallRyeReactiveMessagingReadinessCheck implements HealthCheck { @Override public HealthCheckResponse call() { HealthReport report = health.getReadiness(); return HealthChecks.getHealthCheck(report, "readiness check"); }  @Override HealthCheckResponse call();  }