Search in sources :

Example 1 with ConsumersHealthCheckRepository

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

the class MicroProfileHealthCamelChecksDisabledTest method consumersHealthCheckNull.

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

Example 2 with ConsumersHealthCheckRepository

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

the class MicroProfileHealthEnabledTest method consumersHealthCheckNotNull.

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

Aggregations

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