# Uses of Class
com.google.testing.compile.CompilationSubject.DiagnosticInFile

## Uses of CompilationSubject.DiagnosticInFile in com.google.testing.compile

Methods in com.google.testing.compile that return CompilationSubject.DiagnosticInFile
Modifier and Type
Method
Description
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadErrorContaining(String expectedSubstring)`
Asserts that there was at least one error containing `expectedSubstring`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadErrorContainingMatch(String expectedPattern)`
Asserts that there was at least one error containing a match for `expectedPattern`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadErrorContainingMatch(Pattern expectedPattern)`
Asserts that there was at least one error containing a match for `expectedPattern`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadNoteContaining(String expectedSubstring)`
Asserts that there was at least one note containing `expectedSubstring`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadNoteContainingMatch(String expectedPattern)`
Asserts that there was at least one note containing a match for `expectedPattern`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadNoteContainingMatch(Pattern expectedPattern)`
Asserts that there was at least one note containing a match for `expectedPattern`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadWarningContaining(String expectedSubstring)`
Asserts that there was at least one warning containing `expectedSubstring`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadWarningContainingMatch(String expectedPattern)`
Asserts that there was at least one warning containing a match for `expectedPattern`.
`CompilationSubject.DiagnosticInFile`
CompilationSubject.`hadWarningContainingMatch(Pattern expectedPattern)`
Asserts that there was at least one warning containing a match for `expectedPattern`.