Class SystemProperties
java.lang.Object
com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate<SystemProperties.Set>
com.atlassian.confluence.util.test.rules.SystemProperties
- All Implemented Interfaces:
org.junit.rules.TestRule
Deprecated.
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate
annotationClass, testClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.junit.runners.model.Statement
applyForAnnotation
(org.junit.runners.model.Statement statement, org.junit.runner.Description description, SystemProperties.Set set) Deprecated.Methods inherited from class com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate
apply
-
Constructor Details
-
SystemProperties
Deprecated.
-
-
Method Details
-
applyForAnnotation
protected org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, SystemProperties.Set set) Deprecated.- Specified by:
applyForAnnotation
in classAnnotatedMethodTemplate<SystemProperties.Set>
-
RestoreSystemProperties