Package io.helidon.microprofile.testing
Annotation Interface AddConfigBlock
@Inherited
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Repeatable(AddConfigBlocks.class)
public @interface AddConfigBlock
Add a configuration fragment to the
synthetic test configuration
.
Example:
@AddConfigBlock(type = "yaml", value = """ foo1: bar: "value1" """) @AddConfigBlock(type = "properties", value = """ foo2=value2 foo3=value3 """) class MyTest { }
This annotation can be repeated.
If used on a method, the container will be reset regardless of the test lifecycle.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements