Class TestContextAotGenerator
java.lang.Object
org.springframework.test.context.aot.TestContextAotGenerator
TestContextAotGenerator
generates AOT artifacts for integration tests
that depend on support from the Spring TestContext Framework.- Since:
- 6.0
- Author:
- Sam Brannen
- See Also:
-
ApplicationContextAotGenerator
-
Constructor Summary
ConstructorDescriptionTestContextAotGenerator
(org.springframework.aot.generate.GeneratedFiles generatedFiles) Create a newTestContextAotGenerator
that uses the suppliedGeneratedFiles
.TestContextAotGenerator
(org.springframework.aot.generate.GeneratedFiles generatedFiles, org.springframework.aot.hint.RuntimeHints runtimeHints) -
Method Summary
Modifier and TypeMethodDescriptionfinal org.springframework.aot.hint.RuntimeHints
Get theRuntimeHints
gathered during AOT processing.void
processAheadOfTime
(Stream<Class<?>> testClasses) Process each of the supplied Spring integration test classes and generate AOT artifacts.
-
Constructor Details
-
TestContextAotGenerator
public TestContextAotGenerator(org.springframework.aot.generate.GeneratedFiles generatedFiles) Create a newTestContextAotGenerator
that uses the suppliedGeneratedFiles
.- Parameters:
generatedFiles
- theGeneratedFiles
to use
-
TestContextAotGenerator
public TestContextAotGenerator(org.springframework.aot.generate.GeneratedFiles generatedFiles, org.springframework.aot.hint.RuntimeHints runtimeHints) - Parameters:
generatedFiles
- theGeneratedFiles
to useruntimeHints
- theRuntimeHints
to use
-
-
Method Details
-
getRuntimeHints
public final org.springframework.aot.hint.RuntimeHints getRuntimeHints()Get theRuntimeHints
gathered during AOT processing. -
processAheadOfTime
Process each of the supplied Spring integration test classes and generate AOT artifacts.- Throws:
TestContextAotException
- if an error occurs during AOT processing
-