类 TestAotProcessor
java.lang.Object
cn.taketoday.context.aot.AbstractAotProcessor<Void>
cn.taketoday.test.context.aot.TestAotProcessor
- 直接已知子类:
InfraTestAotProcessor
Filesystem-based ahead-of-time (AOT) processing base implementation that scans
the provided classpath roots for Infra 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.
- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Harry Yang
- 另请参阅:
-
TestContextAotGeneratorContextAotProcessor
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.context.aot.AbstractAotProcessor
cn.taketoday.context.aot.AbstractAotProcessor.Settings -
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedTestAotProcessor(Set<Path> classpathRoots, cn.taketoday.context.aot.AbstractAotProcessor.Settings settings) Create a new processor for the specified test classpath roots and common settings. -
方法概要
修饰符和类型方法说明protected 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 Infra integration test classes.Scan the configured classpath roots for Infra integration test classes.从类继承的方法 cn.taketoday.context.aot.AbstractAotProcessor
createFileSystemGeneratedFiles, deleteExistingOutput, getSettings, process, writeHints
-
字段详细资料
-
classpathRoots
-
-
构造器详细资料
-
TestAotProcessor
protected TestAotProcessor(Set<Path> classpathRoots, cn.taketoday.context.aot.AbstractAotProcessor.Settings settings) Create a new processor for the specified test classpath roots and common settings.- 参数:
classpathRoots- the classpath roots to scan for test classessettings- the settings to apply
-
-
方法详细资料
-
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.- 指定者:
doProcess在类中cn.taketoday.context.aot.AbstractAotProcessor<Void>
-
performAotProcessing
protected void performAotProcessing()Perform ahead-of-time processing of Infra 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()AbstractAotProcessor.createFileSystemGeneratedFiles()TestContextAotGenerator.processAheadOfTime(Stream)AbstractAotProcessor.writeHints(cn.taketoday.aot.hint.RuntimeHints)
-
scanClasspathRoots
Scan the configured classpath roots for Infra integration test classes.- 返回:
- a stream of Infra integration test classes
-