Class SystemProperties

All Implemented Interfaces:
org.junit.rules.TestRule

@Deprecated public class SystemProperties extends AnnotatedMethodTemplate<SystemProperties.Set>
Deprecated.
since 7.20 use RestoreSystemProperties
Set system properties for a specific test run.

Usage:

 public class MyTest
   {
      @Rule public SystemProperties systemProperties = new SystemProperties(MyTest.class);

      @literal @Test
      @literal @SystemProperties.Set (keyValuePairs = { "atlassian.dev.mode", "true" })
       public void myTestMethod() throws Exception
       {
           // call unit under test
       }
  }
  
 
Since:
5.4