Utility for capturing the result of calls to System.out / System.err
| Type | Name and description |
|---|---|
java.io.ByteArrayOutputStream |
err |
java.io.ByteArrayOutputStream |
out |
SystemStreamsRedirector |
previousState |
| Type | Name and description |
|---|---|
SystemOutErrCapturer |
capture() |
void |
close() |
SystemOutErrCapturer |
redirectToNull() |
static T |
withCapturedOutput(groovy.lang.Closure<T> closure) |
static T |
withNullOutput(groovy.lang.Closure<T> closure) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |