File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
cli/wadltest/src/test/scala/com/rackspace/com/papi/components/checker/cli Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,11 @@ class WadlTestSuite extends FunSuite with Matchers {
40
40
System .setErr(printErrStream)
41
41
System .setOut(printOutStream)
42
42
43
- test(outStream, errStream)
44
-
43
+ Console .withErr(printErrStream) {
44
+ Console .withOut(printOutStream) {
45
+ test(outStream, errStream)
46
+ }
47
+ }
45
48
} finally {
46
49
System .setErr(oldErr)
47
50
System .setOut(oldOut)
@@ -83,10 +86,10 @@ class WadlTestSuite extends FunSuite with Matchers {
83
86
test(" -S with bad parameter" ) {
84
87
withOutput((outStream, errStream) => {
85
88
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())
90
93
})
91
94
}
92
95
You can’t perform that action at this time.
0 commit comments