クラスの使用
org.springframework.core.test.tools.TestCompiler
パッケージ
説明
コア AOT クラスのサポートをテストします。
生成されたコードをコンパイルおよびテストするためのサポートクラス。
org.springframework.aot.test.generate 内の TestCompiler 使用
修飾子と型メソッド説明CompilerFiles.apply
(TestCompiler testCompiler) TestGenerationContext.apply
(TestCompiler testCompiler) このコンテキストの状態で、指定されたTestCompiler
を構成します。修飾子と型メソッド説明static UnaryOperatorSE<TestCompiler>
CompilerFiles.from
(InMemoryGeneratedFiles generatedFiles) 修飾子と型メソッド説明CompilerFiles.apply
(TestCompiler testCompiler) TestGenerationContext.apply
(TestCompiler testCompiler) このコンテキストの状態で、指定されたTestCompiler
を構成します。org.springframework.core.test.tools 内の TestCompiler 使用
修飾子と型メソッド説明TestCompiler.failOnWarning()
警告が発生した場合に失敗する新しいTestCompiler
インスタンスを作成します。static TestCompiler
TestCompiler.forCompiler
(JavaCompilerSE javaCompiler) 指定されたJavaCompiler
SE に基づく新しいTestCompiler
を作成します。static TestCompiler
TestCompiler.forSystem()
システム java コンパイラーに基づく新しいTestCompiler
を作成します。TestCompiler.printFiles
(PrintStreamSE printStream) ソースファイルとリソースファイルの内容を、指定されたPrintStream
SE に出力します。TestCompiler.with
(UnaryOperatorSE<TestCompiler> customizer) このコンパイラーにカスタマイズを適用します。TestCompiler.withClasses
(IterableSE<ClassFile> classFiles) 追加のクラスで新しいTestCompiler
インスタンスを作成します。TestCompiler.withCompilerOptions
(StringSE... options) 追加のコンパイラーオプションを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withProcessors
(IterableSE<ProcessorSE> processors) 追加のアノテーションプロセッサーを使用して新しいTestCompiler
インスタンスを作成します。TestCompiler.withProcessors
(ProcessorSE... processors) 追加のアノテーションプロセッサーを使用して新しいTestCompiler
インスタンスを作成します。TestCompiler.withResources
(IterableSE<ResourceFile> resourceFiles) 追加のソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withResources
(ResourceFile... resourceFiles) 追加のリソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withResources
(ResourceFiles resourceFiles) 追加のリソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withSources
(IterableSE<SourceFile> sourceFiles) 追加のソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withSources
(SourceFile... sourceFiles) 追加のソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。TestCompiler.withSources
(SourceFiles sourceFiles) 追加のソースファイルを使用して、新しいTestCompiler
インスタンスを作成します。