jamesnetherton commented on code in PR #8593: URL: https://github.com/apache/camel/pull/8593#discussion_r1000461089
########## components/camel-microprofile/camel-microprofile-health/src/test/java/org/apache/camel/microprofile/health/CamelMicroProfileHealthSupervisedRoutesMainTest.java: ########## @@ -16,55 +16,74 @@ */ package org.apache.camel.microprofile.health; +import java.util.Map; import java.util.Optional; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonValue; -import io.smallrye.health.SmallRyeHealth; -import io.smallrye.health.SmallRyeHealthReporter; import org.apache.camel.CamelContext; +import org.apache.camel.Component; +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Exchange; +import org.apache.camel.Processor; +import org.apache.camel.Producer; import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.health.HealthCheckHelper; import org.apache.camel.health.HealthCheckRegistry; +import org.apache.camel.health.HealthCheckResultBuilder; import org.apache.camel.impl.DefaultCamelContext; +import org.apache.camel.impl.health.AbstractHealthCheck; +import org.apache.camel.impl.health.ComponentsHealthCheckRepository; import org.apache.camel.main.SimpleMain; +import org.apache.camel.support.DefaultComponent; +import org.apache.camel.support.DefaultConsumer; +import org.apache.camel.support.DefaultEndpoint; +import org.apache.camel.support.DefaultProducer; import org.eclipse.microprofile.health.HealthCheckResponse.Status; import org.junit.jupiter.api.Test; +import io.smallrye.health.SmallRyeHealth; +import io.smallrye.health.SmallRyeHealthReporter; + import static org.apache.camel.microprofile.health.CamelMicroProfileHealthTestHelper.getHealthJson; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.fail; public class CamelMicroProfileHealthSupervisedRoutesMainTest { - private SmallRyeHealthReporter reporter = new SmallRyeHealthReporter(); + private final SmallRyeHealthReporter reporter = new SmallRyeHealthReporter(); @Test public void testSupervisedRouteHealthChecks() throws Exception { Review Comment: Might be enough to clone `CamelMicroProfileHealthConsumerTest` and modify it a bit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org