StackTraceCleanerProvider
Date: 2015-09-18

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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `StackTraceCleaner` | `getStackTraceCleaner(StackTraceCleaner defaultCleaner)` Allows configuring custom StackTraceCleaner.

- - ### Method Detail

    - #### getStackTraceCleaner

          StackTraceCleaner getStackTraceCleaner(StackTraceCleaner defaultCleaner)

      Allows configuring custom StackTraceCleaner.
      Parameters:
        `defaultCleaner` - - Mockito's default StackTraceCleaner
      Returns:
        StackTraceCleaner to use