diff --git a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/WipeReads.scala b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/WipeReads.scala index 599d12f5bea8d5732cbebe2eacf2a7452603819d..3b921db8f2f6f0b08a18f2afb1c4689e44164de5 100644 --- a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/WipeReads.scala +++ b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/WipeReads.scala @@ -450,4 +450,4 @@ object WipeReads extends ToolCommand { commandArgs.filteredOutBam.map(x => prepOutBam(x, commandArgs.inputBam, writeIndex = !commandArgs.noMakeIndex)) ) } -} +} \ No newline at end of file diff --git a/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala b/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala index 8b7cb2ac8ea68c1d167899658d918867b932bb3b..3929f13f88fd5790fcb2621745cba4753a0dc242 100644 --- a/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala +++ b/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala @@ -125,6 +125,13 @@ class WipeReadsUnitTest extends TestNGSuite with MockitoSugar with Matchers { val RefFlatFile1 = new File(resourcePath("/rrna01.refFlat")) val GtfFile1 = new File(resourcePath("/rrna01.gtf")) + @Test def testMakeIntervalFromUnknown() = { + val thrown = intercept[IllegalArgumentException] { + makeIntervalFromFile(new File("false.bam")) + } + thrown.getMessage should ===("Unexpected interval file type: false.bam") + } + @Test def testMakeIntervalFromBed() = { val intervals: List[Interval] = makeIntervalFromFile(BedFile1) intervals.length shouldBe 3