Package io.helidon.microprofile.testing
Annotation Interface Configuration
General setting for the test configuration.
If used on a method, the container will be reset regardless of the test lifecycle.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
Class-path resources to add as config sources to the synthetic test configuration.Configuration profile.boolean
If set tofalse
, the synthetic test configuration is used.
-
Element Details
-
useExisting
boolean useExistingIf set tofalse
, the synthetic test configuration is used.The synthetic test configuration is expressed with the following:
If set to
true
, only the existing (or default) MicroProfile configuration is used as-is and the annotations listed previously are ignored.You can use
ConfigProviderResolver
to define the configuration programmatically before the CDI container starts.- Returns:
- whether to use existing (or default) configuration
- Default:
false
-
configSources
String[] configSourcesClass-path resources to add as config sources to the synthetic test configuration.- Returns:
- config sources
- Default:
{}
-
profile
String profileConfiguration profile.The default profile is 'test'
- Returns:
- profile
- Default:
"test"
-