Search in sources :

Example 1 with ContextHealthCheck

use of org.apache.camel.impl.health.ContextHealthCheck in project camel-quarkus by apache.

the class MicroProfileHealthCamelChecksDisabledTest method contextHealthCheckNull.

@Test
public void contextHealthCheckNull() {
    ContextHealthCheck contextHealthCheck = context.getRegistry().lookupByNameAndType("context", ContextHealthCheck.class);
    assertNull(contextHealthCheck);
}
Also used : ContextHealthCheck(org.apache.camel.impl.health.ContextHealthCheck) QuarkusUnitTest(io.quarkus.test.QuarkusUnitTest) Test(org.junit.jupiter.api.Test)

Example 2 with ContextHealthCheck

use of org.apache.camel.impl.health.ContextHealthCheck in project camel-quarkus by apache.

the class MicroProfileHealthEnabledTest method contextHealthCheckNotNull.

@Test
public void contextHealthCheckNotNull() {
    ContextHealthCheck contextHealthCheck = context.getRegistry().lookupByNameAndType("context", ContextHealthCheck.class);
    assertNotNull(contextHealthCheck);
}
Also used : ContextHealthCheck(org.apache.camel.impl.health.ContextHealthCheck) QuarkusUnitTest(io.quarkus.test.QuarkusUnitTest) Test(org.junit.jupiter.api.Test)

Aggregations

QuarkusUnitTest (io.quarkus.test.QuarkusUnitTest)2 ContextHealthCheck (org.apache.camel.impl.health.ContextHealthCheck)2 Test (org.junit.jupiter.api.Test)2