Skip to content

Commit b9c8d7d

Browse files
leonard84snicoll
authored andcommitted
Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter
See gh-18214
1 parent b1ca1ae commit b9c8d7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
class TestTypeExcludeFilter extends TypeExcludeFilter {
3434

3535
private static final String[] CLASS_ANNOTATIONS = { "org.junit.runner.RunWith",
36-
"org.junit.jupiter.api.extension.ExtendWith" };
36+
"org.junit.jupiter.api.extension.ExtendWith", "org.testng.annotations.Test",
37+
"org.junit.platform.commons.annotation.Testable"};
3738

3839
private static final String[] METHOD_ANNOTATIONS = { "org.junit.Test",
3940
"org.junit.platform.commons.annotation.Testable" };

0 commit comments

Comments
 (0)