Introduce reset method to OutputCapture

Closes gh-8390
This commit is contained in:
Roland Weisleder
2017-03-04 12:46:34 +01:00
committed by Stephane Nicoll
parent feb1ab375f
commit a6f0da8cc6
2 changed files with 55 additions and 0 deletions

View File

@@ -91,6 +91,10 @@ public class OutputCapture implements TestRule {
this.copy = null;
}
public void reset() {
this.copy.reset();
}
public void flush() {
try {
this.captureOut.flush();