# Index

A C D E F G H I J N O P S T V W
All Classes and Interfaces|All Packages|Serialized Form

## A

actualCustomStringRepresentation() - Method in class com.google.testing.compile.JavaFileObjectSubject
and() - Method in interface com.google.testing.compile.CompileTester.ChainingClause
annotationProcessorPath() - Method in class com.google.testing.compile.Compiler
  The annotation processor path.
apply(Statement, Description) - Method in class com.google.testing.compile.CompilationRule
assertThat(Compilation) - Static method in class com.google.testing.compile.CompilationSubject
  Starts making assertions about a `Compilation`.
assertThat(JavaFileObject) - Static method in class com.google.testing.compile.JavaFileObjectSubject
  Starts making assertions about a `JavaFileObject`.
assertThat(JavaFileObject) - Static method in class com.google.testing.compile.JavaSourcesSubject
assertThat(JavaFileObject, JavaFileObject...) - Static method in class com.google.testing.compile.JavaSourcesSubject
atColumn(long) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticAtColumn
  Asserts that the note, warning, or error was found at a given column.
atColumn(long) - Method in interface com.google.testing.compile.CompileTester.ColumnClause

## C

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
  The results of compiling source files.
Compilation.Status - Enum Class in com.google.testing.compile
  The status of a compilation.
CompilationFailureException - Exception Class 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
  Returns a `Subject.Factory` for a `Compilation`.
CompilationSubject - Class in com.google.testing.compile
  A `Truth` subject for a `Compilation`.
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(Iterable) - Method in class com.google.testing.compile.Compiler
  Compiles Java source files.
compile(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(JavaCompiler) - Static method in class com.google.testing.compile.Compiler
  Returns a `Compiler` that uses a given `JavaCompiler` instance.
Compiler - Class in com.google.testing.compile
  An object that can `Compiler.compile(JavaFileObject...)` Java source files.
Compiler() - Constructor for 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) - Method in class com.google.testing.compile.JavaSourcesSubjectFactory
createSubject(FailureMetadata, JavaFileObject) - Method in class com.google.testing.compile.JavaSourceSubjectFactory

## D

diagnostics() - Method in class com.google.testing.compile.Compilation
  All diagnostics reported during compilation.

## E

errors() - Method in class com.google.testing.compile.Compilation
  Errors reported during compilation.

## F

failed() - Method in class com.google.testing.compile.CompilationSubject
  Asserts that the compilation failed.
failExpectingMatchingDiagnostic(String, Object...) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticAtColumn
failExpectingMatchingDiagnostic(String, Object...) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticInFile
failExpectingMatchingDiagnostic(String, Object...) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticOnLine
failsToCompile() - Method in interface com.google.testing.compile.CompileTester
  The clause in the fluent API that tests for unsuccessful compilation.
failsToCompile() - Method in class com.google.testing.compile.JavaSourcesSubject
failsToCompile() - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
FAILURE - Enum constant in enum class com.google.testing.compile.Compilation.Status
  Compilation finished with errors.
forResource(String) - Static method in class com.google.testing.compile.JavaFileObjects
  Returns a `JavaFileObject` for the class path resource with the given `resourceName`.
forResource(URL) - Static method in class com.google.testing.compile.JavaFileObjects
  Returns a `JavaFileObject` for the resource at the given `URL`.
forSourceLines(String, Iterable) - Static method in class com.google.testing.compile.JavaFileObjects
  An overload of `#forSourceLines` that takes an `Iterable<String>`.
forSourceLines(String, String...) - Static method in class com.google.testing.compile.JavaFileObjects
  Behaves exactly like `JavaFileObjects.forSourceString(String, String)`, but joins lines so that multi-line source strings may omit the newline characters.
forSourceString(String, String) - Static method in class com.google.testing.compile.JavaFileObjects
  Creates a `JavaFileObject` with a path corresponding to the `fullyQualifiedName` containing the give `source`.
ForwardingStandardJavaFileManager - Class in com.google.testing.compile
  Forwards calls to a given `StandardJavaFileManager`.
ForwardingStandardJavaFileManager(StandardJavaFileManager) - Constructor for class com.google.testing.compile.ForwardingStandardJavaFileManager
  Creates a new instance of ForwardingStandardJavaFileManager.

## G

generatedFile(JavaFileManager.Location, String) - Method in class com.google.testing.compile.Compilation
  Returns the file at `path` if one was generated.
generatedFile(JavaFileManager.Location, String) - Method in class com.google.testing.compile.CompilationSubject
  Asserts that compilation generated a file at `path`.
generatedFile(JavaFileManager.Location, String, String) - Method in class com.google.testing.compile.Compilation
  Returns the file with name `fileName` in package `packageName` if one was generated.
generatedFile(JavaFileManager.Location, String, String) - Method in class com.google.testing.compile.CompilationSubject
  Asserts that compilation generated a file named `fileName` in package `packageName`.
generatedFiles() - Method in class com.google.testing.compile.Compilation
  Files generated during compilation.
generatedSourceFile(String) - Method in class com.google.testing.compile.Compilation
  Returns the source file for the type with a given qualified name (no ".java" extension) if one was generated.
generatedSourceFile(String) - Method in class com.google.testing.compile.CompilationSubject
  Asserts that compilation generated a source file for a type with a given qualified name.
generatedSourceFiles() - Method in class com.google.testing.compile.Compilation
  Source files generated during compilation.
generatesFileNamed(JavaFileManager.Location, String, String) - Method in interface com.google.testing.compile.CompileTester.GeneratedPredicateClause
  Checks that a file with the specified location, package, and filename was generated.
generatesFiles(JavaFileObject, JavaFileObject...) - Method in interface com.google.testing.compile.CompileTester.GeneratedPredicateClause
  Checks that a file with equivalent kind and content was generated for each of the given files.
generatesSources(JavaFileObject, JavaFileObject...) - Method in interface com.google.testing.compile.CompileTester.GeneratedPredicateClause
  Checks that a source file with an equivalent AST was generated for each of the given files.
getElements() - Method in class com.google.testing.compile.CompilationRule
  Returns the `Elements` instance associated with the current execution of the rule.
getJavaFileObjects(File...) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
getJavaFileObjects(String...) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
getJavaFileObjectsFromFiles(Iterable) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
getJavaFileObjectsFromStrings(Iterable) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
getLocation(JavaFileManager.Location) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
getTypes() - Method in class com.google.testing.compile.CompilationRule
  Returns the `Types` instance associated with the current execution of the rule.

## H

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`.

## I

in(JavaFileObject) - Method in interface com.google.testing.compile.CompileTester.FileClause
inFile(JavaFileObject) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticInFile
  Asserts that the note, warning, or error was found in a given file.
isEqualTo(Object) - Method in class com.google.testing.compile.JavaFileObjectSubject
  If `other` is a `JavaFileObject`, tests that their contents are equal.

## J

javac() - Static method in class com.google.testing.compile.Compiler
  Returns the `javac` compiler.
javaFileObjects() - Static method in class com.google.testing.compile.JavaFileObjectSubject
  Returns a `Subject.Factory` for `JavaFileObjectSubject`s.
JavaFileObjects - Class in com.google.testing.compile
  A utility class for creating `JavaFileObject` instances.
JavaFileObjectSubject - Class in com.google.testing.compile
  Assertions about `JavaFileObject`s.
javaSource() - Static method in class com.google.testing.compile.JavaSourceSubjectFactory
javaSources() - Static method in class com.google.testing.compile.JavaSourcesSubjectFactory
JavaSourcesSubject - Class in com.google.testing.compile
  A Truth `Subject` that evaluates the result of a `javac` compilation.
JavaSourcesSubject.SingleSourceAdapter - Class in com.google.testing.compile
JavaSourcesSubjectFactory - Class in com.google.testing.compile
  A Truth `Subject.Factory` for creating `JavaSourcesSubject` instances.
JavaSourceSubjectFactory - Class in com.google.testing.compile
  A Truth `Subject.Factory` similar to `JavaSourcesSubjectFactory`, but for working with single source files.

## N

notes() - Method in class com.google.testing.compile.Compilation
  Notes reported during compilation.

## O

onLine(long) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticOnLine
  Asserts that the note, warning, or error was found on a given line.
onLine(long) - Method in interface com.google.testing.compile.CompileTester.LineClause
onLineContaining(String) - Method in class com.google.testing.compile.CompilationSubject.DiagnosticOnLine
  Asserts that the note, warning, or error was found on the single line that contains a substring.
options() - Method in class com.google.testing.compile.Compiler
  The options passed to the compiler.

## P

parsesAs(JavaFileObject, JavaFileObject...) - Method in interface com.google.testing.compile.CompileTester
  The clause in the fluent API that tests that the code parses equivalently to the specified code.
parsesAs(JavaFileObject, JavaFileObject...) - Method in class com.google.testing.compile.JavaSourcesSubject
parsesAs(JavaFileObject, JavaFileObject...) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
ProcessedCompileTesterFactory - Interface in com.google.testing.compile
  Creates `CompileTester` instances that test compilation with provided `Processor` instances.
processedWith(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject
processedWith(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
processedWith(Iterable) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
  Adds annotation processors to the compilation being tested.
processedWith(Processor, Processor...) - Method in class com.google.testing.compile.JavaSourcesSubject
processedWith(Processor, Processor...) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
processedWith(Processor, Processor...) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
  Adds annotation processors to the compilation being tested.
processors() - Method in class com.google.testing.compile.Compiler
  The annotation processors applied during compilation.

## S

setLocation(JavaFileManager.Location, Iterable) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
setLocationFromPaths(JavaFileManager.Location, Collection) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
sourceFiles() - Method in class com.google.testing.compile.Compilation
  The source files compiled.
status() - Method in class com.google.testing.compile.Compilation
  The status of the compilation.
succeeded() - Method in class com.google.testing.compile.CompilationSubject
  Asserts that the compilation succeeded.
succeededWithoutWarnings() - Method in class com.google.testing.compile.CompilationSubject
  Asserts that the compilation succeeded without warnings.
SUCCESS - Enum constant in enum class com.google.testing.compile.Compilation.Status
  Compilation finished without errors.

## T

toString() - Method in class com.google.testing.compile.Compilation

## V

valueOf(String) - Static method in enum class com.google.testing.compile.Compilation.Status
  Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.google.testing.compile.Compilation.Status
  Returns an array containing the constants of this enum class, in the order they are declared.

## W

warnings() - Method in class com.google.testing.compile.Compilation
  Warnings (including mandatory warnings) reported during compilation.
withAnnotationProcessorPath(Iterable) - Method in class com.google.testing.compile.Compiler
  Uses the given annotation processor path for the compilation instead of the system annotation processor path.
withClasspath(Iterable) - Method in class com.google.testing.compile.Compiler
  Uses the given classpath for the compilation instead of the system classpath.
withClasspath(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
withClasspath(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject
withClasspath(Iterable) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
  Sets the compilation classpath.
withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.Compiler
  Deprecated.
  prefer `Compiler.withClasspath(Iterable)`. This method only supports `URLClassLoader` and the default system classloader, and `File`s are usually a more natural way to expression compilation classpaths than class loaders.
withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
  Deprecated.
  prefer `JavaSourcesSubject.SingleSourceAdapter.withClasspath(Iterable)`. This method only supports `URLClassLoader` and the default system classloader, and `File`s are usually a more natural way to expression compilation classpaths than class loaders.
withClasspathFrom(ClassLoader) - Method in class com.google.testing.compile.JavaSourcesSubject
  Deprecated.
  prefer `JavaSourcesSubject.withClasspath(Iterable)`. This method only supports `URLClassLoader` and the default system classloader, and `File`s are usually a more natural way to expression compilation classpaths than class loaders.
withClasspathFrom(ClassLoader) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
  Deprecated.
  prefer `ProcessedCompileTesterFactory.withClasspath(Iterable)`. This method only supports `URLClassLoader` and the default system classloader, and `File`s are usually a more natural way to expression compilation classpaths than class loaders.
withCompilerOptions(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
withCompilerOptions(Iterable) - Method in class com.google.testing.compile.JavaSourcesSubject
withCompilerOptions(Iterable) - Method in interface com.google.testing.compile.ProcessedCompileTesterFactory
  Adds options that will be passed to the compiler.
withCompilerOptions(String...) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
withCompilerOptions(String...) - Method in class com.google.testing.compile.JavaSourcesSubject
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
  Checks that an error exists that contains the given fragment in the diagnostic message.
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
  Checks that a note exists that contains the given fragment in the diagnostic message.
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(Iterable) - Method in class com.google.testing.compile.Compiler
  Passes command-line options to the compiler.
withOptions(Object...) - Method in class com.google.testing.compile.Compiler
  Passes command-line options to the compiler.
withProcessors(Iterable) - Method in class com.google.testing.compile.Compiler
  Uses annotation processors during compilation.
withProcessors(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
  Checks that a warning exists that contains the given fragment in the diagnostic message.
withWarningCount(int) - Method in interface com.google.testing.compile.CompileTester.CompilationWithWarningsClause
  Checks that the total warning count in all files matches the given amount.

A C D E F G H I J N O P S T V W
All Classes and Interfaces|All Packages|Serialized Form