Class SystemErrAndOutRule
java.lang.Object
uk.org.webcompere.systemstubs.stream.SystemErrAndOut
uk.org.webcompere.systemstubs.rules.SystemErrAndOutRule
- All Implemented Interfaces:
org.junit.rules.TestRule,Executable,TestResource,SystemStubTestRule,Output
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor - uses aTapStreamSystemErrAndOutRule(Output output) Construct with a sharedOutputSystemErrAndOutRule(OutputFactory<? extends OutputStream> outputFactory) Construct with an output shared from the an output created against theSystem.outoriginal -
Method Summary
Methods inherited from class uk.org.webcompere.systemstubs.stream.SystemErrAndOut
clear, getOutputStream, getText, setup, teardownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.org.webcompere.systemstubs.resource.Executable
executeMethods inherited from interface uk.org.webcompere.systemstubs.stream.output.Output
closeOutput, factoryOfSelf, getLines, getLinesNormalized, getLinesNormalized, getOutputMethods inherited from interface uk.org.webcompere.systemstubs.rules.internal.SystemStubTestRule
applyMethods inherited from interface uk.org.webcompere.systemstubs.resource.TestResource
execute, setup, teardown
-
Constructor Details
-
SystemErrAndOutRule
public SystemErrAndOutRule()Default constructor - uses aTapStream -
SystemErrAndOutRule
Construct with a sharedOutput- Parameters:
output- the output both system err and out will write to
-
SystemErrAndOutRule
Construct with an output shared from the an output created against theSystem.outoriginal- Parameters:
outputFactory- the output factory to create the output
-