Class Java8LocationImpl
java.lang.Object
org.mockito.internal.debugging.Java8LocationImpl
- All Implemented Interfaces:
Serializable, Location
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate Stringprivate static final StackTraceFilterprivate String -
Constructor Summary
ConstructorsModifierConstructorDescriptionJava8LocationImpl(Throwable stackTraceHolder, boolean isInline) privateJava8LocationImpl(StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcomputeStackTraceInformation(StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline) Eagerly compute the stacktrace line from the stackTraceHolder.Source file of this locationtoString()Human readable location in the source code, seeInvocation.getLocation()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
stackTraceFilter
-
stackTraceLine
-
sourceFile
-
-
Constructor Details
-
Java8LocationImpl
-
Java8LocationImpl
private Java8LocationImpl(StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline)
-
-
Method Details
-
toString
-
computeStackTraceInformation
private void computeStackTraceInformation(StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline) Eagerly compute the stacktrace line from the stackTraceHolder. Storing the Throwable is memory-intensive for tests that have large stacktraces and have a lot of invocations on mocks. -
getSourceFile
Description copied from interface:LocationSource file of this location- Specified by:
getSourceFilein interfaceLocation- Returns:
- source file
-