Commit fc4e050
Fix @ScyllaSkip/@ScyllaOnly class-level annotations with @rule
When BaseCcmRule is used as @rule (instance-level), JUnit passes a
Description for the test method, so description.getAnnotation() only
finds method-level annotations. Class-level annotations like
@ScyllaSkip on RequestIdGeneratorIT were not being detected.
Now also check description.getTestClass().getAnnotation() as a
fallback, which correctly finds class-level annotations regardless
of whether the rule is used as @rule or @ClassRule.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 08bf881 commit fc4e050
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
| |||
0 commit comments