No (at least out of the box) since @RetryingTest
is a @TestTemplate
:
@TestTemplate
is used to signal that the annotated method is a test template method.
Similar to @Test
, it is designed to target only ANNOTATION_TYPE
and METHOD
. JUnit Jupiter had a similar request back in 2019 and they decided against a class-level @Test
annotation:
There are many ways to declare tests in Jupiter: @Test
, @TestFactory
, @TestTemplate
(@RepeatedTest
, @ParameterizedTest
) -- we want them to be explicitly visible and not rely on a pattern that matches a method signature.
See also: https://github.com/junit-pioneer/junit-pioneer/issues/720