Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
5f0b7d9a
Commit
5f0b7d9a
authored
Sep 10, 2015
by
Peter van 't Hof
Browse files
Capture stderr
parent
e683889c
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/VcfStatsTest.scala
View file @
5f0b7d9a
...
...
@@ -229,16 +229,25 @@ class VcfStatsTest extends TestNGSuite with Matchers {
argsParser
.
parse
(
array
,
Args
())
}
validateArgs
(
Array
(
"-I"
,
vcf
,
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
,
"--binSize"
,
"50"
,
"--writeBinStats"
,
"--genotypeWiggle"
,
"NonexistentThing"
))
shouldBe
empty
val
stderr1
=
new
java
.
io
.
ByteArrayOutputStream
Console
.
withErr
(
stderr1
)
{
validateArgs
(
Array
(
"-I"
,
vcf
,
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
,
"--binSize"
,
"50"
,
"--writeBinStats"
,
"--genotypeWiggle"
,
"NonexistentThing"
))
shouldBe
empty
}
validateArgs
(
Array
(
"-I"
,
vcf
,
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
,
"--binSize"
,
"50"
,
"--writeBinStats"
,
"--generalWiggle"
,
"NonexistentThing"
))
shouldBe
empty
val
stderr2
=
new
java
.
io
.
ByteArrayOutputStream
Console
.
withErr
(
stderr2
)
{
validateArgs
(
Array
(
"-I"
,
vcf
,
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
,
"--binSize"
,
"50"
,
"--writeBinStats"
,
"--generalWiggle"
,
"NonexistentThing"
))
shouldBe
empty
}
validateArgs
(
Array
(
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
))
shouldBe
empty
val
stderr3
=
new
java
.
io
.
ByteArrayOutputStream
Console
.
withErr
(
stderr3
)
{
validateArgs
(
Array
(
"-R"
,
ref
,
"-o"
,
tmp
.
toAbsolutePath
.
toString
))
shouldBe
empty
}
}
@Test
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment