Uses of Class
org.springframework.aot.test.generator.file.SourceFile
Package
Description
Support classes for compiling and testing generated code.
Support classes for running assertions on generated files.
-
Uses of SourceFile in org.springframework.aot.test.generator.compile
Modifier and TypeMethodDescriptionCompiled.getSourceFile()
Return the single source file that was compiled.Compiled.getSourceFile
(String pattern) Return the single matching source file that was compiled.Compiled.getSourceFileFromPackage
(String packageName) Return the single source file that was compiled in the given package.Modifier and TypeMethodDescriptionvoid
TestCompiler.compile
(SourceFile sourceFile, Consumer<Compiled> compiled) Compile content from this instance along with the additional provided source file.TestCompiler.withSources
(SourceFile... sourceFiles) Return a newTestCompiler
instance with additional source files.Modifier and TypeMethodDescriptionTestCompiler.withSources
(Iterable<SourceFile> sourceFiles) Return a newTestCompiler
instance with additional source files. -
Uses of SourceFile in org.springframework.aot.test.generator.file
Modifier and TypeMethodDescriptionGet theSourceFile
with the givenDynamicFile#getPath() path
.SourceFiles.getSingle()
Return the single source file contained in the collection.Return the single matching source file contained in the collection.SourceFiles.getSingleFromPackage
(String packageName) Return a single source file contained in the specified package.static SourceFile
SourceFile.of
(CharSequence charSequence) Factory method to create a newSourceFile
from the givenCharSequence
.static SourceFile
SourceFile.of
(String path, CharSequence charSequence) Factory method to create a newSourceFile
from the givenCharSequence
.static SourceFile
SourceFile.of
(String path, WritableContent writableContent) Factory method to create a newSourceFile
from the givenWritableContent
.static SourceFile
SourceFile.of
(String path, InputStreamSource inputStreamSource) Factory method to create a newSourceFile
from the givenInputStreamSource
.static SourceFile
SourceFile.of
(WritableContent writableContent) Factory method to create a newSourceFile
from the givenWritableContent
.static SourceFile
SourceFile.of
(InputStreamSource inputStreamSource) Factory method to create a newSourceFile
from the givenInputStreamSource
.Modifier and TypeMethodDescriptionSourceFiles.iterator()
SourceFiles.stream()
Stream theSourceFile
instances contained in this collection.Modifier and TypeMethodDescriptionSourceFiles.and
(SourceFile... sourceFiles) Return a newSourceFiles
instance that merges files from another array ofSourceFile
instances.static SourceFiles
SourceFiles.of
(SourceFile... sourceFiles) Factory method that can be used to create aSourceFiles
instance containing the specified files.Modifier and TypeMethodDescriptionSourceFiles.and
(Iterable<SourceFile> sourceFiles) Return a newSourceFiles
instance that merges files from another array ofSourceFile
instances.