public class SystemErrRule extends SystemErr implements SystemStubTestRule
System.err during tests.SystemErrcurrentTarget, originalStream, printStreamGetter, printStreamSetter, targetFactory| Constructor and Description |
|---|
SystemErrRule()
Default constructor, uses a
TapStream to
tap system error while the rule is active |
SystemErrRule(Output<? extends OutputStream> output)
Construct with an alternative
Output to use |
SystemErrRule(OutputFactory<? extends OutputStream> outputFactory)
Construct with a
OutputFactory for creating output objects from the existing output |
clear, doSetup, doTeardown, getOutputStream, getText, wrapisActive, setup, teardownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyexecute, setup, teardownexecutecloseOutput, factoryOfSelf, fromCloseableStream, fromStream, getLines, getLinesNormalized, getLinesNormalized, getOutputpublic SystemErrRule(Output<? extends OutputStream> output)
Output to useoutput - the output to write system error topublic SystemErrRule(OutputFactory<? extends OutputStream> outputFactory)
OutputFactory for creating output objects from the existing outputoutputFactory - the factory to usepublic SystemErrRule()
TapStream to
tap system error while the rule is activeCopyright © 2020–2023. All rights reserved.