org.mockito.exceptions.stacktrace
public interface StackTraceCleaner
Excluding an element will make it not show in the cleaned stack trace.
Not-excluding an element does not guarantee it will be shown
(e.g. it depends on the implementation of
Mockito internal StackTraceFilter
).
The implementations are required to be thread safe. For example, make them stateless.
See the default implementation: DefaultStackTraceCleaner
.
Modifier and Type | Method and Description |
---|---|
boolean |
isIn(StackTraceElement candidate)
Decides if element is included.
|
boolean isIn(StackTraceElement candidate)
candidate
- element of the actual stack trace