Annotation Interface Configuration
Additional configuration of config itself.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Class path properties config sources to add to configuration of this test class or method.Configuration profile.boolean
If set totrue
, the existing (or default) MicroProfile configuration would be used.
-
Element Details
-
useExisting
boolean useExistingIf set totrue
, the existing (or default) MicroProfile configuration would be used. In this case it is important to set propertymp.initializer.allow=true
in order CDI container to start, when used withHelidonTest
. By default uses a configuration constructed using allAddConfig
annotations andconfigSources()
. When set to false and aBeforeAll
method registers a custom configuration withConfigProviderResolver
, the result is undefined, though tests have shown that the registered config may be used (as BeforeAll ordering is undefined by JUnit, it may be called after our extension)- Returns:
- whether to use existing (or default) configuration, or customized one
- Default:
false
-
configSources
String[] configSourcesClass path properties config sources to add to configuration of this test class or method.- Returns:
- config sources to add
- Default:
{}
-
profile
String profileConfiguration profile.- Returns:
- String with default value "test".
- Default:
"test"
-