Uses of Class
org.springframework.core.test.tools.TestCompiler
Packages that use TestCompiler
Package
Description
Test support for core AOT classes.
Support classes for compiling and testing generated code.
-
Uses of TestCompiler in org.springframework.aot.test.generate
Methods in org.springframework.aot.test.generate that return TestCompilerModifier and TypeMethodDescriptionCompilerFiles.apply
(TestCompiler testCompiler) TestGenerationContext.apply
(TestCompiler testCompiler) Configure the specifiedTestCompiler
with the state of this context.Methods in org.springframework.aot.test.generate that return types with arguments of type TestCompilerModifier and TypeMethodDescriptionstatic UnaryOperator<TestCompiler>
CompilerFiles.from
(InMemoryGeneratedFiles generatedFiles) Methods in org.springframework.aot.test.generate with parameters of type TestCompilerModifier and TypeMethodDescriptionCompilerFiles.apply
(TestCompiler testCompiler) TestGenerationContext.apply
(TestCompiler testCompiler) Configure the specifiedTestCompiler
with the state of this context. -
Uses of TestCompiler in org.springframework.core.test.tools
Methods in org.springframework.core.test.tools that return TestCompilerModifier and TypeMethodDescriptionTestCompiler.failOnWarning()
Create a newTestCompiler
instance that fails if any warning is encountered.static TestCompiler
TestCompiler.forCompiler
(JavaCompiler javaCompiler) Create a newTestCompiler
backed by the givenJavaCompiler
.static TestCompiler
TestCompiler.forSystem()
Create a newTestCompiler
backed by the system java compiler.TestCompiler.printFiles
(PrintStream printStream) Print the contents of the source and resource files to the specifiedPrintStream
.TestCompiler.with
(UnaryOperator<TestCompiler> customizer) Apply customization to this compiler.TestCompiler.withClasses
(Iterable<ClassFile> classFiles) Create a newTestCompiler
instance with additional classes.TestCompiler.withCompilerOptions
(String... options) Create a newTestCompiler
instance with the additional compiler options.TestCompiler.withProcessors
(Iterable<Processor> processors) Create a newTestCompiler
instance with additional annotation processors.TestCompiler.withProcessors
(Processor... processors) Create a newTestCompiler
instance with additional annotation processors.TestCompiler.withResources
(Iterable<ResourceFile> resourceFiles) Create a newTestCompiler
instance with additional source files.TestCompiler.withResources
(ResourceFile... resourceFiles) Create a newTestCompiler
instance with additional resource files.TestCompiler.withResources
(ResourceFiles resourceFiles) Create a newTestCompiler
instance with additional resource files.TestCompiler.withSources
(Iterable<SourceFile> sourceFiles) Create a newTestCompiler
instance with additional source files.TestCompiler.withSources
(SourceFile... sourceFiles) Create a newTestCompiler
instance with additional source files.TestCompiler.withSources
(SourceFiles sourceFiles) Create a newTestCompiler
instance with additional source files.Method parameters in org.springframework.core.test.tools with type arguments of type TestCompilerModifier and TypeMethodDescriptionTestCompiler.with
(UnaryOperator<TestCompiler> customizer) Apply customization to this compiler.