Browse Source

Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter

See gh-18214
pull/18464/head
Leonard Brünings 6 years ago committed by Stephane Nicoll
parent
commit
b9c8d7dd60
  1. 3
      spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilter.java

3
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; @@ -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" };

Loading…
Cancel
Save