Class SystemPropertiesRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

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

      • SystemPropertiesRule

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

      • 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