/** * Asserts that the note, warning, or error was found on the single line that contains a * substring. */ public void onLineContaining(String expectedLineSubstring) { findMatchingDiagnosticsOnLine(findLineContainingSubstring(expectedLineSubstring)); }
/** Asserts that the note, warning, or error was found on a given line. */ @CanIgnoreReturnValue public DiagnosticAtColumn onLine(long expectedLine) { return new DiagnosticAtColumn( this, linesInFile, expectedLine, findMatchingDiagnosticsOnLine(expectedLine)); }
/** * Asserts that the note, warning, or error was found on the single line that contains a * substring. */ public void onLineContaining(String expectedLineSubstring) { findMatchingDiagnosticsOnLine(findLineContainingSubstring(expectedLineSubstring)); }
/** Asserts that the note, warning, or error was found on a given line. */ @CanIgnoreReturnValue public DiagnosticAtColumn onLine(long expectedLine) { return new DiagnosticAtColumn( this, linesInFile, expectedLine, findMatchingDiagnosticsOnLine(expectedLine)); }