Skip navigation links
A C D E F G H I J N O P S T V W 

A

actualCustomStringRepresentation() - Method in class com.google.testing.compile.JavaFileObjectSubject
 
and() - Method in interface com.google.testing.compile.CompileTester.ChainingClause
 
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 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
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(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
An object that can Compiler.compile(javax.tools.JavaFileObject...) Java source files.
Compiler() - Constructor for class com.google.testing.compile.Compiler
 
compiler(JavaCompiler) - Static method in class com.google.testing.compile.Compiler
Returns a Compiler that uses a given JavaCompiler instance.
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
 

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.
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
 
forResource(URL) - Static method in class com.google.testing.compile.JavaFileObjects
Returns a JavaFileObject for the resource at the given URL.
forResource(String) - Static method in class com.google.testing.compile.JavaFileObjects
Returns a JavaFileObject for the class path resource with the given resourceName.
forSourceLines(String, String...) - Static method in class com.google.testing.compile.JavaFileObjects
Behaves exactly like JavaFileObjects.forSourceString(java.lang.String, java.lang.String), but joins lines so that multi-line source strings may omit the newline characters.
forSourceLines(String, Iterable<String>) - Static method in class com.google.testing.compile.JavaFileObjects
An overload of #forSourceLines that takes an Iterable<String>.
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, 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.
generatedFile(JavaFileManager.Location, String) - Method in class com.google.testing.compile.CompilationSubject
Asserts that compilation generated a file at path.
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<? extends File>) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
 
getJavaFileObjectsFromStrings(Iterable<String>) - 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 - Class in com.google.testing.compile
A utility class for creating JavaFileObject instances.
javaFileObjects() - Static method in class com.google.testing.compile.JavaFileObjectSubject
Returns a Subject.Factory for JavaFileObjectSubjects.
JavaFileObjectSubject - Class in com.google.testing.compile
Assertions about JavaFileObjects.
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

Parser - Class in com.google.testing.compile
Methods to parse Java source files.
Parser() - Constructor for class com.google.testing.compile.Parser
 
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(Processor, Processor...) - Method in class com.google.testing.compile.JavaSourcesSubject
 
processedWith(Iterable<? extends Processor>) - Method in class com.google.testing.compile.JavaSourcesSubject
 
processedWith(Processor, Processor...) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
 
processedWith(Iterable<? extends 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.
processedWith(Iterable<? extends 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<? extends File>) - Method in class com.google.testing.compile.ForwardingStandardJavaFileManager
 
setLocationFromPaths(JavaFileManager.Location, Collection<? extends Path>) - 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.

T

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

V

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

W

warnings() - Method in class com.google.testing.compile.Compilation
Warnings (including mandatory warnings) reported during compilation.
withClasspath(Iterable<File>) - Method in class com.google.testing.compile.Compiler
Uses the given classpath for the compilation instead of the system classpath.
withClasspath(Iterable<File>) - Method in class com.google.testing.compile.JavaSourcesSubject.SingleSourceAdapter
 
withClasspath(Iterable<File>) - Method in class com.google.testing.compile.JavaSourcesSubject
 
withClasspath(Iterable<File>) - 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 Files 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 Files 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 Files 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 Files are usually a more natural way to expression compilation classpaths than class loaders.
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
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(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
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 
Skip navigation links

Copyright © 2013–2020. All rights reserved.