Package io.quarkus.test.common
Enum Class TestResourceScope
- All Implemented Interfaces:
Serializable
,Comparable<TestResourceScope>
,Constable
Defines how Quarkus behaves with regard to the application of the resource to this test and the testsuite in general
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMeans the resource applies to all tests in the test suite.Means that Quarkus will not restart when running consecutive tests that use the same set of resources.Means that Quarkus will run the test in complete isolation, i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestResourceScope
Returns the enum constant of this class with the specified name.static TestResourceScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESTRICTED_TO_CLASS
Means that Quarkus will run the test in complete isolation, i.e. it will restart every time it finds such a resource.Restarting Quarkus for this test means that the test resources will be restarted. This includes the global test resources and the Dev Services.
Use with caution as it might slow down your test suite significantly.
-
MATCHING_RESOURCES
Means that Quarkus will not restart when running consecutive tests that use the same set of resources.Note that when a restart is needed, all the resources will be restarted. This includes the global test resources and the Dev Services.
Quarkus groups the tests by test resources to reduce the number of restarts.
-
GLOBAL
Means the resource applies to all tests in the test suite.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-