package org.mockito.plugins; import org.mockito.Incubating; import org.mockito.exceptions.stacktrace.StackTraceCleaner; /** * An extension point to register custom {@link 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. *
* For more information how to register custom StackTraceCleaner * please refer to the documentation of {@link MockMaker}. * We will update the documentation shortly. *
* See the default implementation: {@link org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider} */ @Incubating public interface StackTraceCleanerProvider { /** * Allows configuring custom StackTraceCleaner. * * @param defaultCleaner - Mockito's default StackTraceCleaner * @return StackTraceCleaner to use */ StackTraceCleaner getStackTraceCleaner(StackTraceCleaner defaultCleaner); }