Commit 0e6920a2 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Code improvement

parent 43006ba6
...@@ -71,10 +71,9 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers { ...@@ -71,10 +71,9 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
/** /**
* This should simply not raise an exception * This should simply not raise an exception
*/ */
val tmp = File.createTempFile("VCfFilter", ".vcf.gz") val tmp = File.createTempFile("VCfFilter", ".vcf")
tmp.deleteOnExit() tmp.deleteOnExit()
val tmpPath = tmp.getAbsolutePath val arguments: Array[String] = Array("-I", veppedPath, "-o", tmp.getAbsolutePath,
val arguments: Array[String] = Array("-I", veppedPath, "-o", tmpPath,
"--mustHaveGenotype", "Sample_101:HET") "--mustHaveGenotype", "Sample_101:HET")
main(arguments) main(arguments)
...@@ -83,12 +82,11 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers { ...@@ -83,12 +82,11 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
val tmp2 = File.createTempFile("VcfFilter", ".vcf.gz") val tmp2 = File.createTempFile("VcfFilter", ".vcf.gz")
tmp2.deleteOnExit() tmp2.deleteOnExit()
val tmpPath2 = tmp2.getAbsolutePath val arguments2: Array[String] = Array("-I", veppedPath, "-o", tmp2.getAbsolutePath,
val arguments2: Array[String] = Array("-I", veppedPath, "-o", tmpPath2,
"--mustHaveGenotype", "Sample_101:HOM_VAR") "--mustHaveGenotype", "Sample_101:HOM_VAR")
main(arguments2) main(arguments2)
val size2 = new VCFFileReader(new File(tmpPath2), false).size val size2 = new VCFFileReader(tmp2, false).size
size2 shouldBe 0 size2 shouldBe 0
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment