Class StackTraceElementAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<StackTraceElementAssert,StackTraceElement>
io.github.ascopes.jct.assertions.StackTraceElementAssert
  • Constructor Details

  • Method Details

    • fileName

      Get assertions for the filename of the stack trace frame.
      Returns:
      the assertions for the file name.
      Throws:
      AssertionError - if the stack trace element is null.
    • lineNumber

      Get assertions for the line number of the stack trace frame.

      The line number may be non-positive if the method is a native method.

      Returns:
      the assertions for the line number.
      Throws:
      AssertionError - if the stack trace element is null.
    • moduleName

      Get assertions for the module name of the stack trace frame.

      The value may be null if not present.

      Returns:
      the assertions for the module name.
      Throws:
      AssertionError - if the stack trace element is null.
    • moduleVersion

      Get assertions for the module version of the stack trace frame.

      The value may be null if not present.

      Returns:
      the assertions for the module version.
      Throws:
      AssertionError - if the stack trace element is null.
    • classLoaderName

      Get assertions for the name of the classloader of the class in the stack trace frame.
      Returns:
      the assertions for the classloader name.
      Throws:
      AssertionError - if the stack trace element is null.
    • className

      Get assertions for the class name of the stack trace frame.
      Returns:
      the assertions for the class name.
      Throws:
      AssertionError - if the stack trace element is null.
    • methodName

      Get assertions for the method name of the stack trace frame.
      Returns:
      the assertions for the method name.
      Throws:
      AssertionError - if the stack trace element is null.
    • nativeMethod

      Get assertions for whether the frame is for a native (JNI) method or not.
      Returns:
      the assertions for the method nativity.
      Throws:
      AssertionError - if the stack trace element is null.