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