Search in sources :

Example 1 with ApplicationLifecycleService

use of io.cdap.cdap.internal.app.services.ApplicationLifecycleService in project cdap by caskdata.

the class SystemAppManagementServiceTest method setup.

@BeforeClass
public static void setup() {
    Injector injector = getInjector();
    programLifecycleService = injector.getInstance(ProgramLifecycleService.class);
    applicationLifecycleService = injector.getInstance(ApplicationLifecycleService.class);
    cConf = injector.getInstance(CConfiguration.class);
}
Also used : Injector(com.google.inject.Injector) ApplicationLifecycleService(io.cdap.cdap.internal.app.services.ApplicationLifecycleService) ProgramLifecycleService(io.cdap.cdap.internal.app.services.ProgramLifecycleService) CConfiguration(io.cdap.cdap.common.conf.CConfiguration) BeforeClass(org.junit.BeforeClass)

Example 2 with ApplicationLifecycleService

use of io.cdap.cdap.internal.app.services.ApplicationLifecycleService in project cdap by caskdata.

the class CapabilityApplierTest method setup.

@BeforeClass
public static void setup() {
    applicationLifecycleService = getInjector().getInstance(ApplicationLifecycleService.class);
    capabilityWriter = getInjector().getInstance(CapabilityWriter.class);
    locationFactory = getInjector().getInstance(LocationFactory.class);
    artifactRepository = getInjector().getInstance(ArtifactRepository.class);
    CConfiguration cConfiguration = getInjector().getInstance(CConfiguration.class);
    DiscoveryServiceClient client = getInjector().getInstance(DiscoveryServiceClient.class);
    RemoteClientFactory remoteClientFactory = getInjector().getInstance(RemoteClientFactory.class);
    capabilityApplier = new CapabilityApplier(null, null, null, null, null, null, cConfiguration, remoteClientFactory);
}
Also used : RemoteClientFactory(io.cdap.cdap.common.internal.remote.RemoteClientFactory) DiscoveryServiceClient(org.apache.twill.discovery.DiscoveryServiceClient) ApplicationLifecycleService(io.cdap.cdap.internal.app.services.ApplicationLifecycleService) ArtifactRepository(io.cdap.cdap.internal.app.runtime.artifact.ArtifactRepository) CConfiguration(io.cdap.cdap.common.conf.CConfiguration) LocationFactory(org.apache.twill.filesystem.LocationFactory) BeforeClass(org.junit.BeforeClass)

Aggregations

CConfiguration (io.cdap.cdap.common.conf.CConfiguration)2 ApplicationLifecycleService (io.cdap.cdap.internal.app.services.ApplicationLifecycleService)2 BeforeClass (org.junit.BeforeClass)2 Injector (com.google.inject.Injector)1 RemoteClientFactory (io.cdap.cdap.common.internal.remote.RemoteClientFactory)1 ArtifactRepository (io.cdap.cdap.internal.app.runtime.artifact.ArtifactRepository)1 ProgramLifecycleService (io.cdap.cdap.internal.app.services.ProgramLifecycleService)1 DiscoveryServiceClient (org.apache.twill.discovery.DiscoveryServiceClient)1 LocationFactory (org.apache.twill.filesystem.LocationFactory)1