Class SystemProperty

All Implemented Interfaces:
org.junit.rules.TestRule

public class SystemProperty extends AnnotatedMethodTemplate<SystemProperty.Set>
Set the system property before the test and then clear it later

Usage:

 public class MyTest
   {
      @literal @Rule public SystemProperty systemPropertyTestRule = new SystemProperty(MyTest.class);

      @literal @Test
      @literal @SystemPropertyTestRule.Set(name = ""incremental.sync.events.batch.limit"", value = "5000")
       public void myTestMethod() throws Exception
       {

       }
  }
  
 
Since:
9.4.0