Annotation Interface TestConfigProperty


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Repeatable(TestConfigProperties.class) public @interface TestConfigProperty
Set the value of a configuration property.

If declared on a top-level test class then the configuration property is used for all test methods declared on the test class and all nested test classes.

If declared on a method then the configuration property is only used for that test method. If the test instance lifecycle is

invalid reference
Lifecycle#_PER_CLASS
, this annotation can only be declared on a top-level test class, otherwise it's ignored.

Configuration properties declared on test methods take precedence over the configuration properties declared on test class.

See Also: