Skip to content

Commit

Permalink
Add a lot more info to the QuarkusTestResource deprecation note
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Aug 22, 2024
1 parent c75c0f4 commit 49b058c
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 49b058c

Please sign in to comment.