org.apache.maven.surefire.report
Class SystemStreamCapturer
java.lang.Object
org.apache.maven.surefire.report.SystemStreamCapturer
public class SystemStreamCapturer
- extends java.lang.Object
Captures System.out/System.err streams to buffers.
Please note that this design is inherently single-threaded test-linear, and is intended only
for use with ReporterManager, which is also test-linear. While it will capture
output in a multi-threaded scenario, there's no way to associate output with the correct
test/thread.
Note; this class does not need synchronization because all of these methods are serially invoked on
the same thread. Or maybe not. See notes inside ReporterManager about the general improperness
of this design in multithreading.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemStreamCapturer
public SystemStreamCapturer()
restoreStreams
public void restoreStreams()
clearCapturedContent
public void clearCapturedContent()
getStdOutLog
public java.lang.String getStdOutLog()
getStdErrLog
public java.lang.String getStdErrLog()
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.