Skip to content

Commit dec7981

Browse files
committed
fix
1 parent b56e8e9 commit dec7981

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/scala/com/fulcrumgenomics/vcf/DownsampleVcfTest.scala

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.fulcrumgenomics.vcf
22

3+
import com.fulcrumgenomics.sopt.cmdline.ValidationException
34
import com.fulcrumgenomics.testing.VcfBuilder
45
import com.fulcrumgenomics.testing.VcfBuilder.Gt
56
import com.fulcrumgenomics.util.Metric
@@ -619,26 +620,26 @@ class DownsampleVcfTest extends UnitSpec {
619620
}
620621

621622
"DownsampleVcf" should "fail with invalid parameter combinations" in {
622-
assertThrows[IllegalArgumentException] {
623+
assertThrows[ValidationException] {
623624
new DownsampleVcf(input=inVcf,
624625
output=inVcf,
625626
windowSize=150).execute()
626627
}
627-
assertThrows[IllegalArgumentException] {
628+
assertThrows[ValidationException] {
628629
new DownsampleVcf(input=inVcf,
629630
output=inVcf,
630631
proportion=Some(0.1),
631632
downsampleToBases=Some(100),
632633
windowSize=150).execute()
633634
}
634-
assertThrows[IllegalArgumentException] {
635+
assertThrows[ValidationException] {
635636
new DownsampleVcf(input=inVcf,
636637
output=inVcf,
637638
proportion=Some(0.1),
638639
originalBases=Some(100),
639640
windowSize=150).execute()
640641
}
641-
assertThrows[IllegalArgumentException] {
642+
assertThrows[ValidationException] {
642643
new DownsampleVcf(input=inVcf,
643644
output=inVcf,
644645
originalBases=Some(100),

0 commit comments

Comments
 (0)