Search in sources :

Example 6 with DefaultFileProcessingChain

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

the class DefaultFileProcessingChainTest method testFailOnProcessorChain.

@Test(expected = FileProcessorException.class)
public void testFailOnProcessorChain() throws FileProcessorTimeoutException {
    FileProcessingChain fileProcessingChain = new DefaultFileProcessingChain(objectRepository, qcRepository, new FailingFileProcessorNoContinue());
    when(objectRepository.exists(objectId)).thenReturn(true);
    fileProcessingChain.launchChain(1L);
}
Also used : DefaultFileProcessingChain(ca.corefacility.bioinformatics.irida.processing.impl.DefaultFileProcessingChain) FileProcessingChain(ca.corefacility.bioinformatics.irida.processing.FileProcessingChain) DefaultFileProcessingChain(ca.corefacility.bioinformatics.irida.processing.impl.DefaultFileProcessingChain) Test(org.junit.Test)

Aggregations

FileProcessingChain (ca.corefacility.bioinformatics.irida.processing.FileProcessingChain)6 DefaultFileProcessingChain (ca.corefacility.bioinformatics.irida.processing.impl.DefaultFileProcessingChain)6 Test (org.junit.Test)6 FileProcessorException (ca.corefacility.bioinformatics.irida.processing.FileProcessorException)2 FileProcessorTimeoutException (ca.corefacility.bioinformatics.irida.exceptions.FileProcessorTimeoutException)1 QCEntry (ca.corefacility.bioinformatics.irida.model.sample.QCEntry)1