Annotation Interface ClearSystemProperty
@ClearSystemProperty is an annotation that is used to clear the value
of a JVM system property for test execution.
The key of the system property must be specified via the key
attribute.
@ClearSystemProperty can be used on the method and on the class level.
It is repeatable and @Inherited from
higher-level containers. If a class is annotated, the configured property will
be cleared before every test inside that class. After a test has completed,
the original value of the system property will be restored.
During
parallel test execution, all tests annotated with
@SetSystemProperty,
@ClearSystemProperty,
@ReadsSystemProperty, and
@WritesSystemProperty are scheduled in a way that
guarantees correctness under mutation of shared global state.
For further details and examples, see the documentation on all JVM system property annotations in the User Guide.
- Since:
- 6.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface@ClearSystemPropertiesis a container for one or moreClearSystemPropertydeclarations. -
Required Element Summary
Required Elements
-
Element Details
-
key
String keyThe key of the system property to clear.
-