Package org.mockito.internal.debugging
Class Java8LocationImpl
java.lang.Object
org.mockito.internal.debugging.Java8LocationImpl
- All Implemented Interfaces:
Serializable
,Location
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private String
private static final StackTraceFilter
private String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionJava8LocationImpl
(Throwable stackTraceHolder, boolean isInline) private
Java8LocationImpl
(StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
computeStackTraceInformation
(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
Description copied from interface:Location
Human readable location in the source code, seeInvocation.getLocation()
-
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:Location
Source file of this location- Specified by:
getSourceFile
in interfaceLocation
- Returns:
- source file
-