Class StackTraceElementAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<StackTraceElementAssert,StackTraceElement>
io.github.ascopes.jct.assertions.StackTraceElementAssert
- All Implemented Interfaces:
Assert<StackTraceElementAssert,
,StackTraceElement> Descriptable<StackTraceElementAssert>
,ExtensionPoints<StackTraceElementAssert,
StackTraceElement>
public final class StackTraceElementAssert
extends AbstractAssert<StackTraceElementAssert,StackTraceElement>
Assertions to perform on a
stack trace frame
.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ConstructorDescriptionInitialize this assertion object. -
Method Summary
Modifier and TypeMethodDescriptionGet assertions for the name of the classloader of the class in the stack trace frame.Get assertions for the class name of the stack trace frame.fileName()
Get assertions for the filename of the stack trace frame.Get assertions for the line number of the stack trace frame.Get assertions for the method name of the stack trace frame.Get assertions for the module name of the stack trace frame.Get assertions for the module version of the stack trace frame.Get assertions for whether the frame is for a native (JNI) method or not.Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
StackTraceElementAssert
Initialize this assertion object.- Parameters:
actual
- the stacktrace element to assert upon.
-
-
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.
-