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
public class SystemErrAndOutRule extends SystemErrAndOut implements SystemStubTestRule
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SystemErrAndOutRule()Default 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, teardown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.org.webcompere.systemstubs.resource.Executable
execute
-
Methods inherited from interface uk.org.webcompere.systemstubs.stream.output.Output
closeOutput, factoryOfSelf, getLines, getLinesNormalized, getLinesNormalized, getOutput
-
Methods inherited from interface uk.org.webcompere.systemstubs.rules.internal.SystemStubTestRule
apply
-
Methods inherited from interface uk.org.webcompere.systemstubs.resource.TestResource
execute, setup, teardown
-
-
-
-
Constructor Detail
-
SystemErrAndOutRule
public SystemErrAndOutRule()
Default constructor - uses aTapStream
-
SystemErrAndOutRule
public SystemErrAndOutRule(Output output)
Construct with a sharedOutput- Parameters:
output- the output both system err and out will write to
-
SystemErrAndOutRule
public SystemErrAndOutRule(OutputFactory<? extends OutputStream> outputFactory)
Construct with an output shared from the an output created against theSystem.outoriginal- Parameters:
outputFactory- the output factory to create the output
-
-