/external/mockito/src/main/java/org/mockito/internal/ |
D | MockitoCore.java | 44 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 66 mockingProgress().mockingStarted(mock, creationSettings); in mock() 71 MockingProgress mockingProgress = mockingProgress(); in when() local 72 mockingProgress.stubbingStarted(); in when() 74 OngoingStubbing<T> stubbing = (OngoingStubbing<T>) mockingProgress.pullOngoingStubbing(); in when() 76 mockingProgress.reset(); in when() 95 MockingProgress mockingProgress = mockingProgress(); in verify() local 96 VerificationMode actualMode = mockingProgress.maybeVerifyLazily(mode); in verify() 97 …mockingProgress.verificationStarted(new MockAwareVerificationMode(mock, actualMode, mockingProgres… in verify() 102 MockingProgress mockingProgress = mockingProgress(); in reset() local [all …]
|
/external/mockito/src/main/java/org/mockito/ |
D | AdditionalMatchers.java | 8 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 613 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 629 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 645 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 661 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 677 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 693 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 709 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 725 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() 743 mockingProgress().getArgumentMatcherStorage().reportAnd(); in and() [all …]
|
D | ArgumentMatchers.java | 28 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 1321 mockingProgress().getArgumentMatcherStorage().reportMatcher(matcher); in reportMatcher()
|
/external/mockito/src/test/java/org/mockito/internal/progress/ |
D | MockingProgressImplTest.java | 19 private MockingProgress mockingProgress; field in MockingProgressImplTest 23 mockingProgress = new MockingProgressImpl(); in setup() 28 assertNull(mockingProgress.pullVerificationMode()); in shouldStartVerificationAndPullVerificationMode() 32 mockingProgress.verificationStarted(mode); in shouldStartVerificationAndPullVerificationMode() 34 assertSame(mode, mockingProgress.pullVerificationMode()); in shouldStartVerificationAndPullVerificationMode() 36 assertNull(mockingProgress.pullVerificationMode()); in shouldStartVerificationAndPullVerificationMode() 41 mockingProgress.verificationStarted(VerificationModeFactory.atLeastOnce()); in shouldCheckIfVerificationWasFinished() 43 mockingProgress.verificationStarted(VerificationModeFactory.atLeastOnce()); in shouldCheckIfVerificationWasFinished() 51 mockingProgress.addListener(null); in shouldNotifyListenerSafely() 54 mockingProgress.mockingStarted(null, null); in shouldNotifyListenerSafely()
|
D | ThreadSafeMockingProgressTest.java | 17 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 29 MockingProgress p = mockingProgress(); in shouldShareState() 33 p = mockingProgress(); in shouldShareState() 41 MockingProgress p = mockingProgress(); in shouldKnowWhenVerificationHasStarted()
|
/external/mockito/src/test/java/org/mockito/ |
D | StateMaster.java | 10 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 15 mockingProgress().reset(); in reset() 16 mockingProgress().resetOngoingStubbing(); in reset() 20 mockingProgress().validateState(); in validate() 27 mockingProgress().clearListeners(); in clearMockitoListeners()
|
D | MockitoTest.java | 10 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 25 assertThat(mockingProgress().pullOngoingStubbing()).isNull(); in shouldRemoveStubbableFromProgressAfterStubbing()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | MockHandlerImpl.java | 26 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 54 mockingProgress().getArgumentMatcherStorage(), in handle() 60 VerificationMode verificationMode = mockingProgress().pullVerificationMode(); in handle() 63 mockingProgress().getArgumentMatcherStorage(), in handle() 67 mockingProgress().validateState(); in handle() 80 mockingProgress().verificationStarted(verificationMode); in handle() 87 mockingProgress().reportOngoingStubbing(ongoingStubbing); in handle() 101 mockingProgress().reportOngoingStubbing(ongoingStubbing); in handle()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | VerificationCollectorImpl.java | 7 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 41 … mockingProgress().setVerificationStrategy(MockingProgressImpl.getDefaultVerificationStrategy()); in apply() 48 … mockingProgress().setVerificationStrategy(MockingProgressImpl.getDefaultVerificationStrategy()); 60 mockingProgress().setVerificationStrategy(new VerificationStrategy() {
|
/external/mockito/src/main/java/org/mockito/internal/framework/ |
D | DefaultMockitoFramework.java | 15 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 21 mockingProgress().addListener(listener); in addListener() 27 mockingProgress().removeListener(listener); in removeListener()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubberImpl.java | 20 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 80 mockingProgress().reset(); in doThrow() 87 mockingProgress().reset(); in doThrow() 98 mockingProgress().reset(); in doThrow()
|
D | BaseStubbing.java | 8 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 59 mockingProgress().reset(); in thenThrow()
|
D | InvocationContainerImpl.java | 24 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 63 mockingProgress().stubbingCompleted(); in addAnswer()
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | MockHandlerImplTest.java | 34 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 48 mockingProgress().verificationStarted(VerificationModeFactory.atLeastOnce()); in should_remove_verification_mode_even_when_invalid_matchers() 64 assertNull(mockingProgress().pullVerificationMode()); in should_remove_verification_mode_even_when_invalid_matchers()
|
/external/mockito/src/main/java/org/mockito/hamcrest/ |
D | MockitoHamcrest.java | 12 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 178 …mockingProgress().getArgumentMatcherStorage().reportMatcher(new HamcrestArgumentMatcher<T>(matcher… in reportMatcher()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImplStubbingTest.java | 22 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; 33 state = mockingProgress(); in setup()
|
/external/mockito/src/main/java/org/mockito/internal/progress/ |
D | ThreadSafeMockingProgress.java | 29 public final static MockingProgress mockingProgress() { in mockingProgress() method in ThreadSafeMockingProgress
|