OutputCaptureRule
@Deprecated public class OutputCapture extends Object implements org.junit.rules.TestRule
@Rule
to capture output from System.out and System.err.Constructor and Description |
---|
OutputCapture()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Deprecated.
|
void |
expect(org.hamcrest.Matcher<? super String> matcher)
Deprecated.
Verify that the output is matched by the supplied
matcher . |
void |
flush()
Deprecated.
|
void |
reset()
Deprecated.
Discard all currently accumulated output.
|
String |
toString()
Deprecated.
|
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
public void reset()
public void flush()
public void expect(org.hamcrest.Matcher<? super String> matcher)
matcher
. Verification is
performed after the test method has executed.matcher
- the matcherCopyright © 2019 Pivotal Software, Inc.. All rights reserved.