Class SystemPropertiesRule

All Implemented Interfaces:
org.junit.rules.TestRule
Direct Known Subclasses:
FlywayEnableCleanRule

public class SystemPropertiesRule extends AbstractSystemPropertiesOverride<SystemPropertiesRule> implements org.junit.rules.TestRule
TestRule for specifying System properties.
Author:
Daniel Sagenschneider
  • Constructor Details

    • SystemPropertiesRule

      public SystemPropertiesRule(String... nameValuePairs)
      Instantiate.
      Parameters:
      nameValuePairs - Initial System property name/value pairs.
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule