From b9c8d7dd60af6a01655a857f34ad72dad9f80b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20Br=C3=BCnings?= Date: Thu, 12 Sep 2019 19:19:13 +0200 Subject: [PATCH] Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter See gh-18214 --- .../boot/test/context/filter/TestTypeExcludeFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java index c2240a3388c..6150f120211 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java @@ -33,7 +33,8 @@ import org.springframework.core.type.classreading.MetadataReaderFactory; class TestTypeExcludeFilter extends TypeExcludeFilter { private static final String[] CLASS_ANNOTATIONS = { "org.junit.runner.RunWith", - "org.junit.jupiter.api.extension.ExtendWith" }; + "org.junit.jupiter.api.extension.ExtendWith", "org.testng.annotations.Test", + "org.junit.platform.commons.annotation.Testable"}; private static final String[] METHOD_ANNOTATIONS = { "org.junit.Test", "org.junit.platform.commons.annotation.Testable" };