Home
last modified time | relevance | path

Searched refs:mockingProgress (Results 1 – 17 of 17) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java44 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()
97mockingProgress.verificationStarted(new MockAwareVerificationMode(mock, actualMode, mockingProgres… in verify()
102 MockingProgress mockingProgress = mockingProgress(); in reset() local
[all …]
/external/mockito/src/main/java/org/mockito/
DAdditionalMatchers.java8 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 …]
DArgumentMatchers.java28 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
1321 mockingProgress().getArgumentMatcherStorage().reportMatcher(matcher); in reportMatcher()
/external/mockito/src/test/java/org/mockito/internal/progress/
DMockingProgressImplTest.java19 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()
DThreadSafeMockingProgressTest.java17 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/
DStateMaster.java10 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()
DMockitoTest.java10 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
25 assertThat(mockingProgress().pullOngoingStubbing()).isNull(); in shouldRemoveStubbableFromProgressAfterStubbing()
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java26 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/
DVerificationCollectorImpl.java7 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
41mockingProgress().setVerificationStrategy(MockingProgressImpl.getDefaultVerificationStrategy()); in apply()
48mockingProgress().setVerificationStrategy(MockingProgressImpl.getDefaultVerificationStrategy());
60 mockingProgress().setVerificationStrategy(new VerificationStrategy() {
/external/mockito/src/main/java/org/mockito/internal/framework/
DDefaultMockitoFramework.java15 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/
DStubberImpl.java20 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
80 mockingProgress().reset(); in doThrow()
87 mockingProgress().reset(); in doThrow()
98 mockingProgress().reset(); in doThrow()
DBaseStubbing.java8 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
59 mockingProgress().reset(); in thenThrow()
DInvocationContainerImpl.java24 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
63 mockingProgress().stubbingCompleted(); in addAnswer()
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerImplTest.java34 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/
DMockitoHamcrest.java12 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
178mockingProgress().getArgumentMatcherStorage().reportMatcher(new HamcrestArgumentMatcher<T>(matcher… in reportMatcher()
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java22 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
33 state = mockingProgress(); in setup()
/external/mockito/src/main/java/org/mockito/internal/progress/
DThreadSafeMockingProgress.java29 public final static MockingProgress mockingProgress() { in mockingProgress() method in ThreadSafeMockingProgress