@CheckReturnValue public interface ProcessedCompileTesterFactory
CompileTester instances that test compilation with provided Processor
instances.| Modifier and Type | Method and Description |
|---|---|
CompileTester |
processedWith(Iterable<? extends Processor> processors)
Adds annotation processors to the compilation being tested.
|
CompileTester |
processedWith(Processor first,
Processor... rest)
Adds annotation processors to the compilation being tested.
|
ProcessedCompileTesterFactory |
withClasspath(Iterable<File> classPath)
Sets the compilation classpath.
|
ProcessedCompileTesterFactory |
withClasspathFrom(ClassLoader classloader)
Deprecated.
prefer
withClasspath(Iterable). This method only supports URLClassLoader and the default system classloader, and Files are usually
a more natural way to expression compilation classpaths than class loaders. |
ProcessedCompileTesterFactory |
withCompilerOptions(Iterable<String> options)
Adds options that will be passed to the compiler.
|
ProcessedCompileTesterFactory |
withCompilerOptions(String... options)
Adds options that will be passed to the compiler.
|
ProcessedCompileTesterFactory withCompilerOptions(Iterable<String> options)
-Xlint is the first option, by
default.ProcessedCompileTesterFactory withCompilerOptions(String... options)
-Xlint is the first option, by
default.@Deprecated ProcessedCompileTesterFactory withClasspathFrom(ClassLoader classloader)
withClasspath(Iterable). This method only supports URLClassLoader and the default system classloader, and Files are usually
a more natural way to expression compilation classpaths than class loaders.If not specified, we will use the System classpath for compilation.
ProcessedCompileTesterFactory withClasspath(Iterable<File> classPath)
If not specified, we will use the System classpath for compilation.
CompileTester processedWith(Processor first, Processor... rest)
CompileTester processedWith(Iterable<? extends Processor> processors)
Copyright © 2013–2020. All rights reserved.