Closed
Description
Overview
In Spring Framework 6.0.9, we made changes to the Spring TestContext Framework (TCF) to allow AOT processing with the GraalVM tracing agent and Native Build Tools.
Specifically, we introduced a TestAotDetector
utility that is specific to the TCF. This detector considers the current runtime to be in "AOT runtime mode" if the spring.aot.enabled
Spring property is set to true
or the GraalVM org.graalvm.nativeimage.imagecode
JVM system property is set to any non-empty value other than agent
.
Since Spring Boot's testing support uses AotDetector.useGeneratedArtifacts()
in various places, the Boot team should investigate whether Spring Boot Test should migrate from AotDetector
to TestAotDetector
.