Class 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 Detail

      • SetSystemProperty

        public SetSystemProperty​(String property,
                                 String newValue)
    • 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 interface TestConfigurationIF
      • 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 interface TestConfigurationIF