Find @DisabledInAotMode on enclosing classes for @Nested tests
See gh-30834
This commit is contained in:
@@ -55,6 +55,7 @@ import org.springframework.test.context.ContextLoadException;
|
|||||||
import org.springframework.test.context.ContextLoader;
|
import org.springframework.test.context.ContextLoader;
|
||||||
import org.springframework.test.context.MergedContextConfiguration;
|
import org.springframework.test.context.MergedContextConfiguration;
|
||||||
import org.springframework.test.context.SmartContextLoader;
|
import org.springframework.test.context.SmartContextLoader;
|
||||||
|
import org.springframework.test.context.TestContextAnnotationUtils;
|
||||||
import org.springframework.test.context.TestContextBootstrapper;
|
import org.springframework.test.context.TestContextBootstrapper;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
import org.springframework.util.LinkedMultiValueMap;
|
import org.springframework.util.LinkedMultiValueMap;
|
||||||
@@ -94,7 +95,7 @@ public class TestContextAotGenerator {
|
|||||||
private static final Log logger = LogFactory.getLog(TestContextAotGenerator.class);
|
private static final Log logger = LogFactory.getLog(TestContextAotGenerator.class);
|
||||||
|
|
||||||
private static final Predicate<? super Class<?>> isDisabledInAotMode =
|
private static final Predicate<? super Class<?>> isDisabledInAotMode =
|
||||||
testClass -> MergedAnnotations.from(testClass).isPresent(DisabledInAotMode.class);
|
testClass -> TestContextAnnotationUtils.hasAnnotation(testClass, DisabledInAotMode.class);
|
||||||
|
|
||||||
|
|
||||||
private final ApplicationContextAotGenerator aotGenerator = new ApplicationContextAotGenerator();
|
private final ApplicationContextAotGenerator aotGenerator = new ApplicationContextAotGenerator();
|
||||||
|
|||||||
Reference in New Issue
Block a user