Search in sources :

Example 1 with AssemblyFileProcessor

use of ca.corefacility.bioinformatics.irida.processing.impl.AssemblyFileProcessor in project irida by phac-nml.

the class AssemblyFileProcessorTest method setUp.

@Before
public void setUp() throws IridaWorkflowNotFoundException {
    MockitoAnnotations.initMocks(this);
    processor = new AssemblyFileProcessor(objectRepository, submissionRepository, workflowsService, userRepository, ssoRepository, psjRepository);
    UUID workflowUUID = UUID.randomUUID();
    IridaWorkflowDescription workflowDescription = new IridaWorkflowDescription(workflowUUID, null, null, null, null, ImmutableList.of(), ImmutableList.of(), ImmutableList.of());
    IridaWorkflow workflow = new IridaWorkflow(workflowDescription, null);
    when(workflowsService.getDefaultWorkflowByType(AnalysisType.ASSEMBLY_ANNOTATION)).thenReturn(workflow);
    when(userRepository.loadUserByUsername("admin")).thenReturn(new User());
}
Also used : User(ca.corefacility.bioinformatics.irida.model.user.User) IridaWorkflow(ca.corefacility.bioinformatics.irida.model.workflow.IridaWorkflow) AssemblyFileProcessor(ca.corefacility.bioinformatics.irida.processing.impl.AssemblyFileProcessor) IridaWorkflowDescription(ca.corefacility.bioinformatics.irida.model.workflow.description.IridaWorkflowDescription) UUID(java.util.UUID) Before(org.junit.Before)

Aggregations

User (ca.corefacility.bioinformatics.irida.model.user.User)1 IridaWorkflow (ca.corefacility.bioinformatics.irida.model.workflow.IridaWorkflow)1 IridaWorkflowDescription (ca.corefacility.bioinformatics.irida.model.workflow.description.IridaWorkflowDescription)1 AssemblyFileProcessor (ca.corefacility.bioinformatics.irida.processing.impl.AssemblyFileProcessor)1 UUID (java.util.UUID)1 Before (org.junit.Before)1