|
1 | 1 | package com.fulcrumgenomics.vcf
|
2 | 2 |
|
| 3 | +import com.fulcrumgenomics.sopt.cmdline.ValidationException |
3 | 4 | import com.fulcrumgenomics.testing.VcfBuilder
|
4 | 5 | import com.fulcrumgenomics.testing.VcfBuilder.Gt
|
5 | 6 | import com.fulcrumgenomics.util.Metric
|
@@ -619,26 +620,26 @@ class DownsampleVcfTest extends UnitSpec {
|
619 | 620 | }
|
620 | 621 |
|
621 | 622 | "DownsampleVcf" should "fail with invalid parameter combinations" in {
|
622 |
| - assertThrows[IllegalArgumentException] { |
| 623 | + assertThrows[ValidationException] { |
623 | 624 | new DownsampleVcf(input=inVcf,
|
624 | 625 | output=inVcf,
|
625 | 626 | windowSize=150).execute()
|
626 | 627 | }
|
627 |
| - assertThrows[IllegalArgumentException] { |
| 628 | + assertThrows[ValidationException] { |
628 | 629 | new DownsampleVcf(input=inVcf,
|
629 | 630 | output=inVcf,
|
630 | 631 | proportion=Some(0.1),
|
631 | 632 | downsampleToBases=Some(100),
|
632 | 633 | windowSize=150).execute()
|
633 | 634 | }
|
634 |
| - assertThrows[IllegalArgumentException] { |
| 635 | + assertThrows[ValidationException] { |
635 | 636 | new DownsampleVcf(input=inVcf,
|
636 | 637 | output=inVcf,
|
637 | 638 | proportion=Some(0.1),
|
638 | 639 | originalBases=Some(100),
|
639 | 640 | windowSize=150).execute()
|
640 | 641 | }
|
641 |
| - assertThrows[IllegalArgumentException] { |
| 642 | + assertThrows[ValidationException] { |
642 | 643 | new DownsampleVcf(input=inVcf,
|
643 | 644 | output=inVcf,
|
644 | 645 | originalBases=Some(100),
|
|
0 commit comments