Package org.mockito.plugins
Interface StackTraceCleanerProvider
- All Known Implementing Classes:
DefaultStackTraceCleanerProvider
public interface StackTraceCleanerProvider
An extension point to register custom
StackTraceCleaner
.
You can replace Mockito's default StackTraceCleaner.
You can also 'enhance' Mockito's default behavior
because the default cleaner is passed as parameter to the method.
Registering custom StackTraceCleaner is done in similar manner as the MockMaker
implementation.
See the default implementation: DefaultStackTraceCleanerProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetStackTraceCleaner
(StackTraceCleaner defaultCleaner) Allows configuring custom StackTraceCleaner.
-
Method Details
-
getStackTraceCleaner
Allows configuring custom StackTraceCleaner.- Parameters:
defaultCleaner
- - Mockito's default StackTraceCleaner- Returns:
- StackTraceCleaner to use
-