- com.google.testing.compile - package com.google.testing.compile
-
This package contains classes that let you compile Java source code in tests and make assertions
about the results.
- Compilation - Class in com.google.testing.compile
-
- Compilation.Status - Enum in com.google.testing.compile
-
The status of a compilation.
- CompilationFailureException - Exception in com.google.testing.compile
-
An exception thrown to indicate that compilation has failed for an unknown reason.
- CompilationRule - Class in com.google.testing.compile
-
A
JUnit4 Rule that executes tests such that a instances of
Elements and
Types are available during execution.
- CompilationRule() - Constructor for class com.google.testing.compile.CompilationRule
-
- compilations() - Static method in class com.google.testing.compile.CompilationSubject
-
- CompilationSubject - Class in com.google.testing.compile
-
- CompilationSubject.DiagnosticAtColumn - Class in com.google.testing.compile
-
Assertions that a note, warning, or error was found at a given column.
- CompilationSubject.DiagnosticInFile - Class in com.google.testing.compile
-
Assertions that a note, warning, or error was found in a given file.
- CompilationSubject.DiagnosticOnLine - Class in com.google.testing.compile
-
Assertions that a note, warning, or error was found on a given line.
- compile(JavaFileObject...) - Method in class com.google.testing.compile.Compiler
-
Compiles Java source files.
- compile(Iterable<? extends JavaFileObject>) - Method in class com.google.testing.compile.Compiler
-
Compiles Java source files.
- compiler() - Method in class com.google.testing.compile.Compilation
-
The compiler.
- Compiler - Class in com.google.testing.compile
-
- Compiler() - Constructor for class com.google.testing.compile.Compiler
-
- compiler(JavaCompiler) - Static method in class com.google.testing.compile.Compiler
-
- compilesWithoutError() - Method in interface com.google.testing.compile.CompileTester
-
The clause in the fluent API that tests for successful compilation without errors.
- compilesWithoutError() - Method in class com.google.testing.compile.JavaSourcesSubject
-
- compilesWithoutError() - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
-
- compilesWithoutWarnings() - Method in interface com.google.testing.compile.CompileTester
-
The clause in the fluent API that tests for successful compilation without warnings or
errors.
- compilesWithoutWarnings() - Method in class com.google.testing.compile.JavaSourcesSubject
-
- compilesWithoutWarnings() - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
-
- CompileTester - Interface in com.google.testing.compile
-
The root of the fluent API for testing the result of compilation.
- CompileTester.ChainingClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that allows for chaining test conditions.
- CompileTester.CleanCompilationClause - Interface in com.google.testing.compile
-
The clause in the fluent API for further tests on successful compilations without warnings.
- CompileTester.ColumnClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks that a diagnostic starts at a particular
column.
- CompileTester.CompilationWithNotesClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks notes in a compilation.
- CompileTester.CompilationWithWarningsClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks notes and warnings in a compilation.
- CompileTester.FileClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks that a diagnostic is associated with a particular
JavaFileObject.
- CompileTester.GeneratedPredicateClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks that files were generated.
- CompileTester.LineClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks that a diagnostic is on a particular
line.
- CompileTester.SuccessfulCompilationClause - Interface in com.google.testing.compile
-
The clause in the fluent API for further tests on successful compilations.
- CompileTester.SuccessfulFileClause<T> - Interface in com.google.testing.compile
-
The clause in the fluent API that checks that a generated file has the specified contents.
- CompileTester.UnsuccessfulCompilationClause - Interface in com.google.testing.compile
-
The clause in the fluent API for further tests on unsuccessful compilations.
- contentsAsString(Charset) - Method in class com.google.testing.compile.JavaFileObjectSubject
-
Returns a StringSubject that makes assertions about the contents of the actual file as
a string.
- contentsAsUtf8String() - Method in class com.google.testing.compile.JavaFileObjectSubject
-
Returns a StringSubject that makes assertions about the contents of the actual file as
a UTF-8 string.
- hadErrorContaining(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one error containing expectedSubstring.
- hadErrorContainingMatch(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one error containing a match for expectedPattern.
- hadErrorContainingMatch(Pattern) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one error containing a match for expectedPattern.
- hadErrorCount(int) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that the compilation had exactly expectedCount errors.
- hadNoteContaining(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one note containing expectedSubstring.
- hadNoteContainingMatch(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one note containing a match for expectedPattern.
- hadNoteContainingMatch(Pattern) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one note containing a match for expectedPattern.
- hadNoteCount(int) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that the compilation had exactly expectedCount notes.
- hadWarningContaining(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one warning containing expectedSubstring.
- hadWarningContainingMatch(String) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one warning containing a match for expectedPattern.
- hadWarningContainingMatch(Pattern) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that there was at least one warning containing a match for expectedPattern.
- hadWarningCount(int) - Method in class com.google.testing.compile.CompilationSubject
-
Asserts that the compilation had exactly expectedCount warnings.
- hasContents(ByteSource) - Method in class com.google.testing.compile.JavaFileObjectSubject
-
Asserts that the actual file's contents are equal to expected.
- hasSourceEquivalentTo(JavaFileObject) - Method in class com.google.testing.compile.JavaFileObjectSubject
-
Asserts that the actual file is a source file with contents equivalent to expectedSource.
- warnings() - Method in class com.google.testing.compile.Compilation
-
Warnings (including mandatory warnings) reported during compilation.
- withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.Compiler
-
Uses the classpath from the passed on classloader (and its parents) for the compilation
instead of the system classpath.
- withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
-
- withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.JavaSourcesSubject
-
- withClasspathFrom(ClassLoader) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
-
Attempts to extract the classpath from the classpath of the Classloader argument, including all
its parents up to (and including) the System Classloader.
- withCompilerOptions(Iterable<String>) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
-
- withCompilerOptions(String...) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
-
- withCompilerOptions(Iterable<String>) - Method in class com.google.testing.compile.JavaSourcesSubject
-
- withCompilerOptions(String...) - Method in class com.google.testing.compile.JavaSourcesSubject
-
- withCompilerOptions(Iterable<String>) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
-
Adds options that will be passed to the compiler.
- withCompilerOptions(String...) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
-
Adds options that will be passed to the compiler.
- withContents(ByteSource) - Method in interface com.google.testing.compile.CompileTester.SuccessfulFileClause
-
Checks that the contents of the generated file match the contents of the specified
ByteSource.
- withErrorContaining(String) - Method in interface com.google.testing.compile.CompileTester.UnsuccessfulCompilationClause
-
- withErrorCount(int) - Method in interface com.google.testing.compile.CompileTester.UnsuccessfulCompilationClause
-
Checks that the total error count in all files matches the given amount.
- withNoteContaining(String) - Method in interface com.google.testing.compile.CompileTester.CompilationWithNotesClause
-
- withNoteCount(int) - Method in interface com.google.testing.compile.CompileTester.CompilationWithNotesClause
-
Checks that the total note count in all files matches the given amount.
- withOptions(Object...) - Method in class com.google.testing.compile.Compiler
-
Passes command-line options to the compiler.
- withOptions(Iterable<?>) - Method in class com.google.testing.compile.Compiler
-
Passes command-line options to the compiler.
- withProcessors(Processor...) - Method in class com.google.testing.compile.Compiler
-
Uses annotation processors during compilation.
- withProcessors(Iterable<? extends Processor>) - Method in class com.google.testing.compile.Compiler
-
Uses annotation processors during compilation.
- withStringContents(Charset, String) - Method in interface com.google.testing.compile.CompileTester.SuccessfulFileClause
-
Checks that the contents of the generated file are equal to the specified string in the given
charset.
- withWarningContaining(String) - Method in interface com.google.testing.compile.CompileTester.CompilationWithWarningsClause
-
- withWarningCount(int) - Method in interface com.google.testing.compile.CompileTester.CompilationWithWarningsClause
-
Checks that the total warning count in all files matches the given amount.