|
11 | 11 | import org.junit.BeforeClass; |
12 | 12 | import org.junit.Test; |
13 | 13 | import org.labkey.api.module.ModuleLoader; |
| 14 | +import org.labkey.api.pipeline.PipelineJob; |
14 | 15 | import org.labkey.api.pipeline.PipelineJobService; |
15 | 16 | import org.labkey.api.pipeline.TaskId; |
16 | 17 | import org.labkey.api.pipeline.WorkDirectory; |
|
19 | 20 | import org.labkey.sequenceanalysis.pipeline.AlignmentInitTask; |
20 | 21 | import org.labkey.sequenceanalysis.pipeline.PrepareAlignerIndexesTask; |
21 | 22 | import org.labkey.sequenceanalysis.pipeline.SequenceAlignmentJob; |
| 23 | +import org.labkey.sequenceanalysis.pipeline.SequenceAlignmentTask; |
22 | 24 |
|
23 | 25 | import java.io.BufferedReader; |
24 | 26 | import java.io.File; |
25 | 27 | import java.io.IOException; |
26 | 28 | import java.io.PrintWriter; |
27 | | -import java.io.Reader; |
28 | 29 | import java.util.ArrayList; |
29 | 30 | import java.util.List; |
30 | 31 |
|
@@ -174,8 +175,12 @@ public void RunBwaRemote() throws Exception |
174 | 175 |
|
175 | 176 | executeJobRemote(outDir, jobFile); |
176 | 177 |
|
177 | | - //TODO: check outputs |
178 | | - Assert.assertEquals(1, 1); |
| 178 | + //check outputs |
| 179 | + PipelineJob job2 = PipelineJob.readFromFile(jobFile); |
| 180 | + Assert.assertEquals("Incorrect taskId", new TaskId(SequenceAlignmentTask.class), job2.getActiveTaskId()); |
| 181 | + File workingFasta = job.getTargetGenome().getWorkingFastaFile(); |
| 182 | + Assert.assertNotNull("Genome FASTA not set", workingFasta); |
| 183 | + Assert.assertTrue("Dictionary file not created", new File(workingFasta.getPath() + ".dict").exists()); |
179 | 184 | } |
180 | 185 |
|
181 | 186 | protected void executeJobRemote(File workDir, @Nullable File jobJson) throws IOException |
|
0 commit comments