• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 
6 package org.mockito.internal.progress;
7 
8 import org.mockito.MockSettings;
9 import org.mockito.internal.listeners.MockingProgressListener;
10 import org.mockito.invocation.Invocation;
11 import org.mockito.verification.VerificationMode;
12 
13 @SuppressWarnings("unchecked")
14 public interface MockingProgress {
15 
reportOngoingStubbing(IOngoingStubbing iOngoingStubbing)16     void reportOngoingStubbing(IOngoingStubbing iOngoingStubbing);
17 
pullOngoingStubbing()18     IOngoingStubbing pullOngoingStubbing();
19 
verificationStarted(VerificationMode verificationMode)20     void verificationStarted(VerificationMode verificationMode);
21 
pullVerificationMode()22     VerificationMode pullVerificationMode();
23 
stubbingStarted()24     void stubbingStarted();
25 
stubbingCompleted(Invocation invocation)26     void stubbingCompleted(Invocation invocation);
27 
validateState()28     void validateState();
29 
reset()30     void reset();
31 
32     /**
33      * Removes ongoing stubbing so that in case the framework is misused
34      * state validation errors are more accurate
35      */
resetOngoingStubbing()36     void resetOngoingStubbing();
37 
getArgumentMatcherStorage()38     ArgumentMatcherStorage getArgumentMatcherStorage();
39 
mockingStarted(Object mock, Class classToMock)40     void mockingStarted(Object mock, Class classToMock);
41 
setListener(MockingProgressListener listener)42     void setListener(MockingProgressListener listener);
43 }