Class SetSystemProperty
- java.lang.Object
-
- dk.netarkivet.testutils.preconfigured.SetSystemProperty
-
- All Implemented Interfaces:
TestConfigurationIF
public class SetSystemProperty extends Object implements TestConfigurationIF
This class allows setting a system property temporarily. Do not attempt to set it to null, as that will break.
-
-
Constructor Summary
Constructors Constructor Description SetSystemProperty(String property, String newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-