Annotation Interface Configuration
@Inherited
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Deprecated(since="4.2.0")
public @interface Configuration
Deprecated.
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[]
Deprecated.Class-path resources to add as config sources to the synthetic test configuration.Deprecated.Configuration profile.boolean
Deprecated.If set tofalse
, the synthetic test configuration is used.
-
Element Details
-
useExisting
boolean useExistingDeprecated.If 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[] configSourcesDeprecated.Class-path resources to add as config sources to the synthetic test configuration.- Returns:
- config sources
- Default:
{}
-
profile
String profileDeprecated.Configuration profile.The default profile is 'test'
- Returns:
- profile
- Default:
"test"
-
Configuration
instead