Home
last modified time | relevance | path

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

/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/main/java/org/mockito/internal/
DMockitoCore.java48 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
70 mockingProgress().mockingStarted(mock, creationSettings); in mock()
75 MockingProgress mockingProgress = mockingProgress(); in when() local
76 mockingProgress.stubbingStarted(); in when()
78 OngoingStubbing<T> stubbing = (OngoingStubbing<T>) mockingProgress.pullOngoingStubbing(); in when()
80 mockingProgress.reset(); in when()
101 MockingProgress mockingProgress = mockingProgress(); in verify() local
102 VerificationMode actualMode = mockingProgress.maybeVerifyLazily(mode); in verify()
103mockingProgress.verificationStarted(new MockAwareVerificationMode(mock, actualMode, mockingProgres… in verify()
108 MockingProgress mockingProgress = mockingProgress(); in reset() local
[all …]
/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()
42 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.java23 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
51 mockingProgress().getArgumentMatcherStorage(), in handle()
57 VerificationMode verificationMode = mockingProgress().pullVerificationMode(); in handle()
60 mockingProgress().getArgumentMatcherStorage(), in handle()
64 mockingProgress().validateState(); in handle()
77 mockingProgress().verificationStarted(verificationMode); in handle()
84 mockingProgress().reportOngoingStubbing(ongoingStubbing); in handle()
100 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.java17 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
23 mockingProgress().addListener(listener); in addListener()
29 mockingProgress().removeListener(listener); in removeListener()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java21 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
87 mockingProgress().reset(); in doThrow()
94 mockingProgress().reset(); in doThrow()
105 mockingProgress().reset(); in doThrow()
DBaseStubbing.java8 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
60 mockingProgress().reset(); in thenThrow()
DInvocationContainerImpl.java26 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
68 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
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
DExtendedMockito.java35 import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress;
363 mockingProgress().getArgumentMatcherStorage(); in verifyInt()