forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a prerequisite of fixing the behavior of `@WithTestResource`
- Loading branch information
Showing
9 changed files
with
442 additions
and
239 deletions.
There are no files selected for viewing
439 changes: 298 additions & 141 deletions
439
test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
test-framework/common/src/main/java/io/quarkus/test/common/TestResourceScope.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.test.common; | ||
|
||
/** | ||
* Defines how Quarkus behaves with regard to the application of the resource to this test and the testsuite in general | ||
*/ | ||
public enum TestResourceScope { | ||
|
||
/** | ||
* The declaration order must be from the narrowest scope to the widest | ||
*/ | ||
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 | ||
MATCHING_RESOURCE, // means that Quarkus will not restart when running consecutive tests that use the same resource | ||
GLOBAL, // means the resource applies to all tests in the testsuite | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.