Skip to content

Commit 63c87dd

Browse files
committed
Support additional JUnit Jupiter annotations
Add support for `@RepeatedTest`, `@ParameterizedTest` and `@TestFactory`. Closes gh-145
1 parent 8c0fc6d commit 63c87dd

File tree

1 file changed

+3
-0
lines changed
  • spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check

1 file changed

+3
-0
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check/SpringJUnit5Check.java

+3
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ public class SpringJUnit5Check extends AbstractSpringCheck {
4444
static {
4545
Set<String> annotations = new LinkedHashSet<>();
4646
addAnnotation(annotations, JUNIT4_TEST_ANNOTATION);
47+
addAnnotation(annotations, "org.junit.jupiter.api.RepeatedTest");
4748
addAnnotation(annotations, "org.junit.jupiter.api.Test");
49+
addAnnotation(annotations, "org.junit.jupiter.api.TestFactory");
4850
addAnnotation(annotations, "org.junit.jupiter.api.TestTemplate");
51+
addAnnotation(annotations, "org.junit.jupiter.params.ParameterizedTest");
4952
TEST_ANNOTATIONS = Collections.unmodifiableList(new ArrayList<>(annotations));
5053
}
5154

0 commit comments

Comments
 (0)