All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.plugins.StackTraceCleanerProvider Maven / Gradle / Ivy

There is a newer version: 5.14.2
Show newest version
/*
 * Copyright (c) 2016 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.plugins;

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.
 * 

* Registering custom StackTraceCleaner is done in similar manner as the {@link MockMaker} implementation. *

* See the default implementation: {@link org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider} */ public interface StackTraceCleanerProvider { /** * Allows configuring custom StackTraceCleaner. * * @param defaultCleaner - Mockito's default StackTraceCleaner * @return StackTraceCleaner to use */ StackTraceCleaner getStackTraceCleaner(StackTraceCleaner defaultCleaner); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy