クラス TestContextAotGenerator
java.lang.ObjectSE
org.springframework.test.context.aot.TestContextAotGenerator
TestContextAotGenerator は、Spring TestContext フレームワークからのサポートに依存する統合テスト用の AOT アーティファクトを生成します。- 導入:
- 6.0
- 作成者:
- Sam Brannen
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明TestContextAotGenerator(GeneratedFiles generatedFiles) 提供されたGeneratedFilesを使用する新しいTestContextAotGeneratorを作成します。TestContextAotGenerator(GeneratedFiles generatedFiles, RuntimeHints runtimeHints) 方法の概要
修飾子と型メソッド説明final RuntimeHintsAOT 処理中に収集されたRuntimeHintsを取得します。voidprocessAheadOfTime(StreamSE<ClassSE<?>> testClasses) 提供された Spring 統合テストクラスのそれぞれを処理し、AOT アーティファクトを生成します。
コンストラクターの詳細
TestContextAotGenerator
提供されたGeneratedFilesを使用する新しいTestContextAotGeneratorを作成します。- パラメーター:
generatedFiles- 使用するGeneratedFiles
TestContextAotGenerator
- パラメーター:
generatedFiles- 使用するGeneratedFilesruntimeHints- 使用するRuntimeHints
方法の詳細
getRuntimeHints
AOT 処理中に収集されたRuntimeHintsを取得します。processAheadOfTime
提供された Spring 統合テストクラスのそれぞれを処理し、AOT アーティファクトを生成します。- 例外:
TestContextAotException- AOT 処理中にエラーが発生した場合