Class PreserveStdStreams
- java.lang.Object
-
- dk.netarkivet.testutils.preconfigured.PreserveStdStreams
-
- All Implemented Interfaces:
TestConfigurationIF
public class PreserveStdStreams extends java.lang.Object implements TestConfigurationIF
-
-
Constructor Summary
Constructors Constructor Description PreserveStdStreams()
PreserveStdStreams(boolean andOverwrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErr()
java.lang.String
getOut()
void
setUp()
Set up the test environment to handle the particular aspect that we handle.void
tearDown()
Reverse the effect of setUp(), setting the environment back to its standard state.
-
-
-
Constructor Detail
-
PreserveStdStreams
public PreserveStdStreams(boolean andOverwrite)
-
PreserveStdStreams
public PreserveStdStreams()
-
-
Method Detail
-
setUp
public void setUp()
Description copied from interface:TestConfigurationIF
Set up the test environment to handle the particular aspect that we handle.- Specified by:
setUp
in interfaceTestConfigurationIF
-
tearDown
public void tearDown()
Description copied from interface:TestConfigurationIF
Reverse the effect of setUp(), setting the environment back to its standard state.- Specified by:
tearDown
in interfaceTestConfigurationIF
-
getOut
public java.lang.String getOut()
-
getErr
public java.lang.String getErr()
-
-