Skip to content

Commit 82733ce

Browse files
committed
Allow mixing all JUnit tests with TestNG
Previously the check allowed e.g. `org.junit.jupiter.api.Test`, but not e.g. `org.junit.jupiter.params.ParameterizedTest` (different package).
1 parent 271f6fa commit 82733ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/trino-testing-services/src/main/java/io/trino/testng/services/ReportBadTestAnnotations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private static boolean isTestAnnotated(Method method)
204204

205205
private static boolean isJUnitAnnotation(Class<? extends Annotation> clazz)
206206
{
207-
return clazz.getPackage().getName().startsWith("org.junit.jupiter.api");
207+
return clazz.getPackage().getName().startsWith("org.junit.jupiter.");
208208
}
209209

210210
@VisibleForTesting

0 commit comments

Comments
 (0)