Package io.quarkus.test.junit
Class ClassCoercingTestProfile
java.lang.Object
io.quarkus.test.junit.ClassCoercingTestProfile
- All Implemented Interfaces:
QuarkusTestProfile
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.test.junit.QuarkusTestProfile
QuarkusTestProfile.TestResourceEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]The command line parameters that are passed to the main method on startup.booleanIf this method returns true then allStartupEventandShutdownEventobservers declared on application beans should be disabled.booleanIf this returns true then only the test resources returned fromQuarkusTestProfile.testResources()will be started, global annotated test resources will be ignored.Returns additional config to be applied to the test.Allows the default config profile to be overridden.Returns enabled alternatives.booleanIf the main method should be run.tags()The tags this profile is associated with.AdditionalQuarkusTestResourceLifecycleManagerclasses (along with their init params) to be used from this specific test profile.
-
Constructor Details
-
ClassCoercingTestProfile
-
-
Method Details
-
getEnabledAlternatives
Description copied from interface:QuarkusTestProfileReturns enabled alternatives. This has the same effect as setting the 'quarkus.arc.selected-alternatives' config key, however it may be more convenient.- Specified by:
getEnabledAlternativesin interfaceQuarkusTestProfile
-
getConfigOverrides
Description copied from interface:QuarkusTestProfileReturns additional config to be applied to the test. This will override any existing config (including in application.properties), however existing config will be merged with this (i.e. application.properties config will still take effect, unless a specific config key has been overridden).- Specified by:
getConfigOverridesin interfaceQuarkusTestProfile
-
getConfigProfile
Description copied from interface:QuarkusTestProfileAllows the default config profile to be overridden. This basically just sets the quarkus.test.profile system property before the test is run.- Specified by:
getConfigProfilein interfaceQuarkusTestProfile
-
testResources
Description copied from interface:QuarkusTestProfileAdditionalQuarkusTestResourceLifecycleManagerclasses (along with their init params) to be used from this specific test profile. If this method is not overridden, then only theQuarkusTestResourceLifecycleManagerclasses enabled via theQuarkusTestResourceclass annotation will be used for the tests using this profile (which is the same behavior as tests that don't use a profile at all).- Specified by:
testResourcesin interfaceQuarkusTestProfile
-
disableGlobalTestResources
public boolean disableGlobalTestResources()Description copied from interface:QuarkusTestProfileIf this returns true then only the test resources returned fromQuarkusTestProfile.testResources()will be started, global annotated test resources will be ignored.- Specified by:
disableGlobalTestResourcesin interfaceQuarkusTestProfile
-
tags
Description copied from interface:QuarkusTestProfileThe tags this profile is associated with. When thequarkus.test.profile.tagsSystem property is set (its value is a comma separated list of strings) then Quarkus will only execute tests that are annotated with a@TestProfilethat has at least one of the supplied (via the aforementioned system property) tags.- Specified by:
tagsin interfaceQuarkusTestProfile
-
commandLineParameters
Description copied from interface:QuarkusTestProfileThe command line parameters that are passed to the main method on startup. This is ignored forQuarkusMainTest, which has its own way of passing parameters.- Specified by:
commandLineParametersin interfaceQuarkusTestProfile
-
runMainMethod
public boolean runMainMethod()Description copied from interface:QuarkusTestProfileIf the main method should be run. This is ignored forQuarkusMainTest, where the main method is always run.- Specified by:
runMainMethodin interfaceQuarkusTestProfile
-
disableApplicationLifecycleObservers
public boolean disableApplicationLifecycleObservers()Description copied from interface:QuarkusTestProfileIf this method returns true then allStartupEventandShutdownEventobservers declared on application beans should be disabled.- Specified by:
disableApplicationLifecycleObserversin interfaceQuarkusTestProfile
-