| org.apache.derbyTesting.junit.SystemPropertyTestSetup
SystemPropertyTestSetup | public class SystemPropertyTestSetup extends TestSetup (Code) | | Test decorator to set a set of system properties on setUp
and restore them to the previous values on tearDown.
|
Method Summary | |
protected void | setUp() For each property store the current value and
replace it with the new value, unless there is no change. | protected void | tearDown() Revert the properties to their values prior to the setUp call. |
SystemPropertyTestSetup | public SystemPropertyTestSetup(Test test, Properties newValues)(Code) | | Create a test decorator that sets and restores the passed
in properties. Assumption is that the contents of
properties and values will not change during execution.
Parameters: test - test to be decorated Parameters: newValues - properties to be set |
setUp | protected void setUp() throws java.lang.Exception(Code) | | For each property store the current value and
replace it with the new value, unless there is no change.
|
tearDown | protected void tearDown() throws java.lang.Exception(Code) | | Revert the properties to their values prior to the setUp call.
|
|
|