Package org.mockito.internal.debugging
Class LocationImpl
java.lang.Object
org.mockito.internal.debugging.LocationImpl
- All Implemented Interfaces:
Serializable
,Location
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private String
private static final StackTraceFilter
private String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionLocationImpl
(Throwable stackTraceHolder, boolean isInline) LocationImpl
(StackTraceFilter stackTraceFilter) private
LocationImpl
(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
-
LocationImpl
public LocationImpl() -
LocationImpl
-
LocationImpl
-
LocationImpl
private LocationImpl(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
-