- classPath() - Method in class com.google.testing.compile.Compiler
-
The compilation class path.
- 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.
- containsElementsIn(JavaFileObject) - Method in class com.google.testing.compile.JavaFileObjectSubject
-
Asserts that the every node in the
AST of
expectedPattern
exists in the actual file's AST, in the same order.
- 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.
- createSubject(FailureMetadata, Iterable<? extends JavaFileObject>) - Method in class com.google.testing.compile.JavaSourcesSubjectFactory
-
- createSubject(FailureMetadata, JavaFileObject) - Method in class com.google.testing.compile.JavaSourceSubjectFactory
-
- 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 that has an equivalent
AST to that of
expectedSource.