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 SummaryNested classes/interfaces inherited from class org.springframework.context.aot.AbstractAotProcessorAbstractAotProcessor.Settings
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedTestAotProcessor(Set<Path> classpathRoots, AbstractAotProcessor.Settings settings) Create a new processor for the specified test classpath roots and common settings.
- 
Method SummaryModifier and TypeMethodDescriptionprotected VoidTrigger 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 voidPerform 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.AbstractAotProcessorcreateFileSystemGeneratedFiles, deleteExistingOutput, getSettings, process, writeHints
- 
Constructor Details- 
TestAotProcessorCreate a new processor for the specified test classpath roots and common settings.- Parameters:
- classpathRoots- the classpath roots to scan for test classes
- settings- the settings to apply
 
 
- 
- 
Method Details- 
getClasspathRootsGet the classpath roots to scan for test classes.
- 
doProcessTrigger processing of the test classes by clearing output directories first and then performing AOT processing.- Specified by:
- doProcessin class- AbstractAotProcessor<Void>
 
- 
performAotProcessingprotected 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. 
- 
scanClasspathRootsScan the configured classpath roots for Spring integration test classes.- Returns:
- a stream of Spring integration test classes
 
 
-