Lines Matching defs:listener
23 * Adds listener to Mockito.
29 * Make sure you remove the listener when the job is complete, see {@link #removeListener(MockitoListener)}.
30 * Currently the listeners list is thread local so you need to remove listener from the same thread otherwise
34 * If you are trying to add the listener but a listener of the same type was already added (and not removed)
37 * We do not anticipate the use case where adding the same listener type multiple times is useful.
48 * @param listener to add to Mockito
52 MockitoFramework addListener(MockitoListener listener) throws RedundantListenerException;
55 * When you add listener using {@link #addListener(MockitoListener)} make sure to remove it.
56 * Currently the listeners list is thread local so you need to remove listener from the same thread otherwise
64 * @param listener to remove
68 MockitoFramework removeListener(MockitoListener listener);