public class SystemOutWireListener
A KotlinTest listener that facilities testing writes to standard out, by redirecting any data written to standard out to an internal buffer.
Users can query the written data by fetching the buffer by invoking SystemOutWireListener.output.
SystemOutWireListener.output| Constructor and Description |
|---|
SystemOutWireListener(boolean tee)
A KotlinTest listener that facilities testing writes to standard out,
by redirecting any data written to standard out to an internal buffer.
|
SystemOutWireListener()
A KotlinTest listener that facilities testing writes to standard out,
by redirecting any data written to standard out to an internal buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterTest(io.kotlintest.TestCase testCase,
io.kotlintest.TestResult result) |
void |
beforeTest(io.kotlintest.TestCase testCase) |
java.lang.String |
output() |
public SystemOutWireListener(boolean tee)
A KotlinTest listener that facilities testing writes to standard out, by redirecting any data written to standard out to an internal buffer.
Users can query the written data by fetching the buffer by invoking SystemOutWireListener.output.
tee - If true then any data written to standard out will be captured as well as written out. If false then the data written will be captured only.tee - If true then any data written to standard out will be captured as well as written out.
If false then the data written will be captured only.SystemOutWireListener.outputpublic SystemOutWireListener()
A KotlinTest listener that facilities testing writes to standard out, by redirecting any data written to standard out to an internal buffer.
Users can query the written data by fetching the buffer by invoking SystemOutWireListener.output.
SystemOutWireListener.output