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
Classes in org.springframework.aot.test.generate that implement interfaces with type arguments of type TestCompilerModifier and TypeClassDescriptionfinal classAdapter class that can be used to apply AOTGeneratedFilesto theTestCompiler.classGenerationContexttest implementation that usesInMemoryGeneratedFilesand can configure aTestCompilerinstance.Methods in org.springframework.aot.test.generate that return TestCompilerModifier and TypeMethodDescriptionCompilerFiles.apply(TestCompiler testCompiler) TestGenerationContext.apply(TestCompiler testCompiler) Configure the specifiedTestCompilerwith 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 specifiedTestCompilerwith 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 newTestCompilerinstance that fails if any warning is encountered.static TestCompilerTestCompiler.forCompiler(JavaCompiler javaCompiler) Create a newTestCompilerbacked by the givenJavaCompiler.static TestCompilerTestCompiler.forSystem()Create a newTestCompilerbacked 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 newTestCompilerinstance with additional classes.TestCompiler.withCompilerOptions(String... options) Create a newTestCompilerinstance with the additional compiler options.TestCompiler.withProcessors(Iterable<Processor> processors) Create a newTestCompilerinstance with additional annotation processors.TestCompiler.withProcessors(Processor... processors) Create a newTestCompilerinstance with additional annotation processors.TestCompiler.withResources(Iterable<ResourceFile> resourceFiles) Create a newTestCompilerinstance with additional source files.TestCompiler.withResources(ResourceFile... resourceFiles) Create a newTestCompilerinstance with additional resource files.TestCompiler.withResources(ResourceFiles resourceFiles) Create a newTestCompilerinstance with additional resource files.TestCompiler.withSources(Iterable<SourceFile> sourceFiles) Create a newTestCompilerinstance with additional source files.TestCompiler.withSources(SourceFile... sourceFiles) Create a newTestCompilerinstance with additional source files.TestCompiler.withSources(SourceFiles sourceFiles) Create a newTestCompilerinstance 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.