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

com.fitbur.mockito.exceptions.stacktrace.StackTraceCleaner Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fitbur.mockito.exceptions.stacktrace;

/**
 * Decides if particular StackTraceElement is excluded from the human-readable stack trace output.
 * Mockito stack trace filtering mechanism uses this information.
 * 

* 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 {@link com.fitbur.mockito.internal.exceptions.stacktrace.StackTraceFilter}). *

* The implementations are required to be thread safe. For example, make them stateless. *

* See the default implementation: {@link com.fitbur.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner}. * */ public interface StackTraceCleaner { /** * Decides if element is included. * * @param candidate element of the actual stack trace * @return whether the element should be excluded from cleaned stack trace. */ boolean isIn(StackTraceElement candidate); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy