File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
spring-test/src/main/java/org/springframework/test/context/aot Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 55
55
import org .springframework .test .context .ContextLoader ;
56
56
import org .springframework .test .context .MergedContextConfiguration ;
57
57
import org .springframework .test .context .SmartContextLoader ;
58
+ import org .springframework .test .context .TestContextAnnotationUtils ;
58
59
import org .springframework .test .context .TestContextBootstrapper ;
59
60
import org .springframework .util .Assert ;
60
61
import org .springframework .util .LinkedMultiValueMap ;
@@ -94,7 +95,7 @@ public class TestContextAotGenerator {
94
95
private static final Log logger = LogFactory .getLog (TestContextAotGenerator .class );
95
96
96
97
private static final Predicate <? super Class <?>> isDisabledInAotMode =
97
- testClass -> MergedAnnotations . from (testClass ). isPresent ( DisabledInAotMode .class );
98
+ testClass -> TestContextAnnotationUtils . hasAnnotation (testClass , DisabledInAotMode .class );
98
99
99
100
100
101
private final ApplicationContextAotGenerator aotGenerator = new ApplicationContextAotGenerator ();
You can’t perform that action at this time.
0 commit comments