Search in sources :

Example 1 with HealthCheckImplementation

use of io.cdap.cdap.common.implementation.HealthCheckImplementation in project cdap by caskdata.

the class HealthCheckImplementationTest method setup.

@BeforeClass
public static void setup() throws Exception {
    CConfiguration cConf = CConfiguration.create();
    Injector injector = Guice.createInjector(new ConfigModule(cConf), new HealthCheckModule());
    healthCheckImplementation = injector.getInstance(HealthCheckImplementation.class);
    coreV1Api = mock(CoreV1Api.class);
}
Also used : Injector(com.google.inject.Injector) ConfigModule(io.cdap.cdap.common.guice.ConfigModule) HealthCheckModule(io.cdap.cdap.common.guice.HealthCheckModule) CConfiguration(io.cdap.cdap.common.conf.CConfiguration) CoreV1Api(io.kubernetes.client.openapi.apis.CoreV1Api) HealthCheckImplementation(io.cdap.cdap.common.implementation.HealthCheckImplementation) BeforeClass(org.junit.BeforeClass)

Aggregations

Injector (com.google.inject.Injector)1 CConfiguration (io.cdap.cdap.common.conf.CConfiguration)1 ConfigModule (io.cdap.cdap.common.guice.ConfigModule)1 HealthCheckModule (io.cdap.cdap.common.guice.HealthCheckModule)1 HealthCheckImplementation (io.cdap.cdap.common.implementation.HealthCheckImplementation)1 CoreV1Api (io.kubernetes.client.openapi.apis.CoreV1Api)1 BeforeClass (org.junit.BeforeClass)1