Search in sources :

Example 1 with AnalysisProvenanceServiceGalaxy

use of ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisProvenanceServiceGalaxy in project irida by phac-nml.

the class AnalysisProvenanceServiceGalaxyTest method setUp.

@Before
public void setUp() {
    this.galaxyHistoriesService = mock(GalaxyHistoriesService.class);
    this.toolsClient = mock(ToolsClient.class);
    this.jobsClient = mock(JobsClient.class);
    this.provenanceService = new AnalysisProvenanceServiceGalaxy(galaxyHistoriesService, toolsClient, jobsClient);
}
Also used : GalaxyHistoriesService(ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyHistoriesService) AnalysisProvenanceServiceGalaxy(ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisProvenanceServiceGalaxy) ToolsClient(com.github.jmchilton.blend4j.galaxy.ToolsClient) JobsClient(com.github.jmchilton.blend4j.galaxy.JobsClient) Before(org.junit.Before)

Example 2 with AnalysisProvenanceServiceGalaxy

use of ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisProvenanceServiceGalaxy in project irida by phac-nml.

the class AnalysisExecutionServiceTestConfig method analysisProvenanceServiceGalaxy.

@Lazy
@Bean
public AnalysisProvenanceServiceGalaxy analysisProvenanceServiceGalaxy() {
    final ToolsClient toolsClient = localGalaxy.getGalaxyInstanceAdmin().getToolsClient();
    final JobsClient jobsClient = localGalaxy.getGalaxyInstanceAdmin().getJobsClient();
    return new AnalysisProvenanceServiceGalaxy(galaxyHistoriesService, toolsClient, jobsClient);
}
Also used : AnalysisProvenanceServiceGalaxy(ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisProvenanceServiceGalaxy) ToolsClient(com.github.jmchilton.blend4j.galaxy.ToolsClient) JobsClient(com.github.jmchilton.blend4j.galaxy.JobsClient) Lazy(org.springframework.context.annotation.Lazy) Bean(org.springframework.context.annotation.Bean)

Aggregations

AnalysisProvenanceServiceGalaxy (ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisProvenanceServiceGalaxy)2 JobsClient (com.github.jmchilton.blend4j.galaxy.JobsClient)2 ToolsClient (com.github.jmchilton.blend4j.galaxy.ToolsClient)2 GalaxyHistoriesService (ca.corefacility.bioinformatics.irida.pipeline.upload.galaxy.GalaxyHistoriesService)1 Before (org.junit.Before)1 Bean (org.springframework.context.annotation.Bean)1 Lazy (org.springframework.context.annotation.Lazy)1