public class OutputCapture extends Object implements org.junit.rules.TestRule
@Rule
to capture output from System.out and System.err.Constructor and Description |
---|
OutputCapture() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected void |
captureOutput() |
void |
flush() |
protected void |
releaseOutput() |
String |
toString() |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
protected void captureOutput()
protected void releaseOutput()
public void flush()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.