<!-- Please provide us the version of JUnit you are using and, if possible, a failing unit test with your bug report. Don't forget to describe the rationale for this issue (e.g. expected vs. actual behavior). Please also mention where it's a regression compared to a previous version. --> ## Steps to reproduce 1. Annotate a `@ClassTemplate` class with `@ResourceLock("key")` 2. See it fail with "Dynamic test descriptors must not declare exclusive resources" ## Context - Used versions (Jupiter/Vintage/Platform): 5.14.1 / 6.0.1 - Build Tool/IDE: irrelevant ## Deliverables - [ ] Allow `@ResourceLock` on `@ClassTemplate` classes