Class TestAotProcessor
java.lang.Object
org.springframework.context.aot.AbstractAotProcessor<Void>
org.springframework.test.context.aot.TestAotProcessor
Filesystem-based ahead-of-time (AOT) processing base implementation that scans
the provided classpath roots for Spring integration test classes and then
generates AOT artifacts for those test classes in the configured output directories.
Concrete implementations are typically used to kick off optimization of a test suite in a build tool.
- Since:
- 6.0
- Author:
- Sam Brannen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.context.aot.AbstractAotProcessor
AbstractAotProcessor.Settings
-
Constructor Summary
ModifierConstructorDescriptionprotected
TestAotProcessor
(Set<Path> classpathRoots, AbstractAotProcessor.Settings settings) Create a new processor for the specified test classpath roots and common settings. -
Method Summary
Modifier and TypeMethodDescriptionprotected Void
Trigger processing of the test classes by clearing output directories first and then performing AOT processing.Get the classpath roots to scan for test classes.protected void
Perform ahead-of-time processing of Spring integration test classes.Scan the configured classpath roots for Spring integration test classes.Methods inherited from class org.springframework.context.aot.AbstractAotProcessor
createFileSystemGeneratedFiles, deleteExistingOutput, getSettings, process, writeHints
-
Constructor Details
-
TestAotProcessor
Create a new processor for the specified test classpath roots and common settings.- Parameters:
classpathRoots
- the classpath roots to scan for test classessettings
- the settings to apply
-
-
Method Details
-
getClasspathRoots
Get the classpath roots to scan for test classes. -
doProcess
Trigger processing of the test classes by clearing output directories first and then performing AOT processing.- Specified by:
doProcess
in classAbstractAotProcessor<Void>
-
performAotProcessing
protected void performAotProcessing()Perform ahead-of-time processing of Spring integration test classes.Code, resources, and generated classes are stored in the configured output directories. In addition, run-time hints are registered for the application contexts used by the test classes as well as test infrastructure components used by the tests.
-
scanClasspathRoots
Scan the configured classpath roots for Spring integration test classes.- Returns:
- a stream of Spring integration test classes
-