Skip to content

Commit

Permalink
Merge pull request #42700 from gsmet/add-javadoc-QuarkusTestResource
Browse files Browse the repository at this point in the history
Add a lot more info to the QuarkusTestResource deprecation note
  • Loading branch information
gsmet authored Aug 24, 2024
2 parents 48408e5 + 49b058c commit 15d0e96
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@
* <p>
* Note that test resources are never restarted when running {@code @Nested} test classes.
*
* @deprecated Use the new {@link WithTestResource} instead. It will be a long while before this is removed, but better to move
* to the replacement sooner than later.
* @deprecated Use the new {@link WithTestResource} instead. Be careful, {@link WithTestResource} doesn't have the same behavior
* by default and you might want to set {@code restrictToAnnotatedClass} to {@code false} to keep your current
* behavior. If you don't, the test resource will be local to the annotated test and Quarkus will be restarted for
* each annotated test. While it is a saner behavior in general, it might not be what you want for your project if
* the default behavior of {@code QuarkusTestResource} was fine for you.
* Please see the <a href="https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.13">Quarkus 3.13 migration
* guide</a> for more information.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
Expand Down

0 comments on commit 15d0e96

Please sign in to comment.