Class TraceDiagnosticAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<TraceDiagnosticAssert,TraceDiagnostic<? extends JavaFileObject>>
io.github.ascopes.jct.assertions.TraceDiagnosticAssert
All Implemented Interfaces:
Assert<TraceDiagnosticAssert,TraceDiagnostic<? extends JavaFileObject>>, Descriptable<TraceDiagnosticAssert>, ExtensionPoints<TraceDiagnosticAssert,TraceDiagnostic<? extends JavaFileObject>>

Assertions for an individual trace diagnostic.
Since:
0.0.1
Author:
Ashley Scopes
  • Constructor Details

  • Method Details

    • kind

      Get assertions for the kind of the diagnostic.
      Returns:
      the assertions for the diagnostic kind.
      Throws:
      AssertionError - if the diagnostic is null.
    • source

      Get assertions for the source of the diagnostic.

      If no source is present, then the value in the returned assertions may be null.

      Returns:
      the assertions for the source of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • position

      Get assertions for the position of the diagnostic.

      The value may be -1 if no information is available.

      Returns:
      the assertions for the position of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • startPosition

      Get assertions for the start position of the diagnostic.

      The value may be -1 if no information is available.

      Returns:
      the assertions for the start position of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • endPosition

      Get assertions for the end position of the diagnostic.

      The value may be -1 if no information is available.

      Returns:
      the assertions for the end position of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • lineNumber

      Get assertions for the line number of the diagnostic.

      The value may be -1 if no information is available.

      Returns:
      the assertions for the line number of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • columnNumber

      Get assertions for the column number of the diagnostic.

      The value may be -1 if no information is available.

      Returns:
      the assertions for the column number of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • code

      Get assertions for the code of the diagnostic.
      Returns:
      the assertions for the code of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • message

      Get assertions for the message of the diagnostic, assuming the default locale.
      Returns:
      the assertions for the message of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • message

      public AbstractStringAssert<?> message(Locale locale)
      Get assertions for the message of the diagnostic.
      Parameters:
      locale - the locale to use.
      Returns:
      the assertions for the message of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • timestamp

      Get assertions for the timestamp of the diagnostic.
      Returns:
      the assertions for the timestamp of the diagnostic.
      Throws:
      AssertionError - if the diagnostic is null.
    • threadId

      Get assertions for the thread ID of the thread that reported the diagnostic to the compiler.
      Returns:
      the assertions for the thread ID.
      Throws:
      AssertionError - if the diagnostic is null.
    • threadName

      Get assertions for the thread name of the thread that reported the diagnostic.

      This may not be present in some situations, in which case the returned assertions will be performed on a null value instead.

      Returns:
      the assertions for the thread name.
      Throws:
      AssertionError - if the diagnostic is null.
    • stackTrace

      Get assertions for the stack trace of the location the diagnostic was reported to.
      Returns:
      the assertions for the stack trace.
      Throws:
      AssertionError - if the diagnostic is null.