Skip to content

Commit

Permalink
Support additional JUnit Jupiter annotations
Browse files Browse the repository at this point in the history
Add support for `@RepeatedTest`, `@ParameterizedTest` and
`@TestFactory`.

Closes gh-145
  • Loading branch information
philwebb committed Dec 3, 2019
1 parent 8c0fc6d commit 63c87dd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ public class SpringJUnit5Check extends AbstractSpringCheck {
static {
Set<String> annotations = new LinkedHashSet<>();
addAnnotation(annotations, JUNIT4_TEST_ANNOTATION);
addAnnotation(annotations, "org.junit.jupiter.api.RepeatedTest");
addAnnotation(annotations, "org.junit.jupiter.api.Test");
addAnnotation(annotations, "org.junit.jupiter.api.TestFactory");
addAnnotation(annotations, "org.junit.jupiter.api.TestTemplate");
addAnnotation(annotations, "org.junit.jupiter.params.ParameterizedTest");
TEST_ANNOTATIONS = Collections.unmodifiableList(new ArrayList<>(annotations));
}

Expand Down

0 comments on commit 63c87dd

Please sign in to comment.