Interface ProcessedCompileTesterFactory
- All Known Implementing Classes:
JavaSourcesSubject, JavaSourcesSubject.SingleSourceAdapter
public interface ProcessedCompileTesterFactory
Creates
CompileTester instances that test compilation with provided Processor
instances.- Author:
- Gregory Kick
-
Method Summary
Modifier and TypeMethodDescriptionprocessedWith(Iterable<? extends Processor> processors) Adds annotation processors to the compilation being tested.processedWith(Processor first, Processor... rest) Adds annotation processors to the compilation being tested.withClasspath(Iterable<File> classPath) Sets the compilation classpath.withClasspathFrom(ClassLoader classloader) Deprecated.withCompilerOptions(Iterable<String> options) Adds options that will be passed to the compiler.withCompilerOptions(String... options) Adds options that will be passed to the compiler.
-
Method Details
-
withCompilerOptions
Adds options that will be passed to the compiler.-Xlintis the first option, by default. -
withCompilerOptions
Adds options that will be passed to the compiler.-Xlintis the first option, by default. -
withClasspathFrom
Deprecated.preferwithClasspath(Iterable). This method only supportsURLClassLoaderand the default system classloader, andFiles are usually a more natural way to expression compilation classpaths than class loaders.Attempts to extract the classpath from the classpath of the Classloader argument, including all its parents up to (and including) the System Classloader.If not specified, we will use the System classpath for compilation.
-
withClasspath
Sets the compilation classpath.If not specified, we will use the System classpath for compilation.
-
processedWith
Adds annotation processors to the compilation being tested. -
processedWith
Adds annotation processors to the compilation being tested.
-
withClasspath(Iterable).