Class CompilationSubject.DiagnosticOnLine

java.lang.Object
com.google.testing.compile.CompilationSubject.DiagnosticOnLine
Enclosing class:
CompilationSubject

public final class CompilationSubject.DiagnosticOnLine extends Object
Assertions that a note, warning, or error was found on a given line.
  • Method Details

    • onLine

      @CanIgnoreReturnValue public CompilationSubject.DiagnosticAtColumn onLine(long expectedLine)
      Asserts that the note, warning, or error was found on a given line.
    • onLineContaining

      public void onLineContaining(String expectedLineSubstring)
      Asserts that the note, warning, or error was found on the single line that contains a substring.
    • failExpectingMatchingDiagnostic

      protected void failExpectingMatchingDiagnostic(String format, Object... args)