Skip to content

Commit a5439b6

Browse files
committed
Add TestTemplate to TestsShouldNotBePublic
- Fixes #710
1 parent ced18fc commit a5439b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/openrewrite/java/testing/cleanup/TestsShouldNotBePublic.java

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ private boolean hasJUnit5MethodAnnotation(J.MethodDeclaration method) {
172172
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.RepeatedTest") ||
173173
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.params.ParameterizedTest") ||
174174
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.TestFactory") ||
175+
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.TestTemplate") ||
175176
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.AfterEach") ||
176177
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.BeforeEach") ||
177178
TypeUtils.isOfClassType(a.getType(), "org.junit.jupiter.api.AfterAll") ||

0 commit comments

Comments
 (0)