Search in sources :

Example 1 with AnalysisParameterServiceGalaxy

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

the class AnalysisParameterServiceGalaxyTest method setup.

@Before
public void setup() {
    MockitoAnnotations.initMocks(this);
    analysisParameterService = new AnalysisParameterServiceGalaxy();
    when(iridaWorkflow.getWorkflowDescription()).thenReturn(iridaWorkflowDescription);
    IridaToolParameter iridaToolParameter = new IridaToolParameter("galaxy-tool1", "parameter1");
    IridaWorkflowParameter parameter1 = new IridaWorkflowParameter("parameter1", "0", Lists.newArrayList(iridaToolParameter));
    List<IridaWorkflowParameter> iridaWorkflowParameters = Lists.newArrayList(parameter1);
    when(iridaWorkflowDescription.getParameters()).thenReturn(iridaWorkflowParameters);
    when(iridaWorkflowDescription.acceptsParameters()).thenReturn(true);
}
Also used : IridaWorkflowParameter(ca.corefacility.bioinformatics.irida.model.workflow.description.IridaWorkflowParameter) IridaToolParameter(ca.corefacility.bioinformatics.irida.model.workflow.description.IridaToolParameter) AnalysisParameterServiceGalaxy(ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisParameterServiceGalaxy) Before(org.junit.Before)

Aggregations

IridaToolParameter (ca.corefacility.bioinformatics.irida.model.workflow.description.IridaToolParameter)1 IridaWorkflowParameter (ca.corefacility.bioinformatics.irida.model.workflow.description.IridaWorkflowParameter)1 AnalysisParameterServiceGalaxy (ca.corefacility.bioinformatics.irida.service.analysis.workspace.galaxy.AnalysisParameterServiceGalaxy)1 Before (org.junit.Before)1