Skip to content

Commit 85208da

Browse files
author
Damien Johnson
committed
Fixing the failing test in WadlTestSuite caused by switching from Argot to Scopt
1 parent c9d1062 commit 85208da

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cli/wadltest/src/test/scala/com/rackspace/com/papi/components/checker/cli/WadlTestSuite.scala

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ class WadlTestSuite extends FunSuite with Matchers {
4040
System.setErr(printErrStream)
4141
System.setOut(printOutStream)
4242

43-
test(outStream, errStream)
44-
43+
Console.withErr(printErrStream) {
44+
Console.withOut(printOutStream) {
45+
test(outStream, errStream)
46+
}
47+
}
4548
} finally {
4649
System.setErr(oldErr)
4750
System.setOut(oldOut)
@@ -83,10 +86,10 @@ class WadlTestSuite extends FunSuite with Matchers {
8386
test("-S with bad parameter") {
8487
withOutput((outStream, errStream) => {
8588
WadlTest.main(Array("-S", "foo", "input"))
86-
assert(outStream.toString().contains("Unrecognized XSL engine"))
87-
assert(outStream.toString().contains("foo"))
88-
assert(outStream.toString().contains("Xerces, SaxonEE"))
89-
assert(errStream.toString().isEmpty())
89+
assert(errStream.toString().contains("Unrecognized XSL engine"))
90+
assert(errStream.toString().contains("foo"))
91+
assert(errStream.toString().contains("Xerces, SaxonEE"))
92+
assert(outStream.toString().isEmpty())
9093
})
9194
}
9295

0 commit comments

Comments
 (0)