Home
last modified time | relevance | path

Searched refs:atLeastOnce (Results 1 – 25 of 39) sorted by relevance

12

/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationInOrderMixedWithOrdiraryVerificationTest.java44 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldMixVerificationInOrderAndOrdinaryVerification()
54 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowOrdinarilyVerifyingMockPassedToInOrderObject()
65 verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowRedundantVerifications()
70 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowRedundantVerifications()
79 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnNoMoreInteractions()
91 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnNoMoreInteractionsOnMockVerifiedInOrder()
104 verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowOneMethodVerifiedInOrder()
106 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldAllowOneMethodVerifiedInOrder()
117 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnLastInvocationTooEarly()
124 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(1); in shouldScreamWhenUnfamiliarMockPassedToInOrderObject()
DRelaxedVerificationInOrderTest.java103 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldVerifyInteractionsFromAllChunksWhenAtLeastOnceMode()
130 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldPassOnCombinationOfTimesAndAtLeastOnce()
140 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldPassOnEdgyCombinationOfTimesAndAtLeastOnce()
182 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldVerifyMockTwoCalledAtLeastOnce()
187 inOrder.verify(mockTwo, atLeastOnce()).differentMethod(); in shouldFailOnWrongMethodCalledOnMockTwo()
192 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldAllowTimesZeroButOnlyInOrder()
222 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldVerifySecondAndLastInvocation()
228 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldVerifySecondAndLastInvocationWhenAtLeastOnceUsed()
236 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldFailOnLastTwoInvocationsInWrongOrder()
DBasicVerificationInOrderTest.java57 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldVerifyInOrderUsingAtLeastOnce()
61 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(4); in shouldVerifyInOrderUsingAtLeastOnce()
134 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnLastMethodBecauseOneInvocationWanted()
136 inOrder.verify(mockThree, atLeastOnce()).simpleMethod(3); in shouldFailOnLastMethodBecauseOneInvocationWanted()
137 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldFailOnLastMethodBecauseOneInvocationWanted()
147 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(1); in shouldFailOnLastMethodBecauseOneInvocationWantedAgain()
149 inOrder.verify(mockThree, atLeastOnce()).simpleMethod(3); in shouldFailOnLastMethodBecauseOneInvocationWantedAgain()
150 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldFailOnLastMethodBecauseOneInvocationWantedAgain()
240 inOrder.verify(mockTwo, atLeastOnce()).simpleMethod(2); in shouldFailWhenMiddleMethodVerifiedFirstInAtLeastOnceMode()
DDescriptiveMessagesOnVerificationInOrderErrorsTest.java46 inOrder.verify(two, atLeastOnce()).simpleMethod(2); in shouldPrintVerificationInOrderErrorAndShowBothWantedAndPrevious()
49 inOrder.verify(one, atLeastOnce()).simpleMethod(11); in shouldPrintVerificationInOrderErrorAndShowBothWantedAndPrevious()
169 inOrder.verify(one, atLeastOnce()).simpleMethod(anyInt()); in shouldPrintTooLittleInvocations()
171 inOrder.verify(three, atLeastOnce()).simpleMethod(3); in shouldPrintTooLittleInvocations()
DBasicVerificationTest.java67 verify(mock, atLeastOnce()).clear(); in shouldFailOnWrongMethod()
68 verify(mockTwo, atLeastOnce()).add("add"); in shouldFailOnWrongMethod()
70 verify(mockTwo, atLeastOnce()).add("foo"); in shouldFailOnWrongMethod()
DVerificationInOrderTest.java60 inOrder.verify(mockOne, atLeastOnce()).differentMethod(); in shouldMessagesPointToProperMethod()
79 inOrder.verify(mockOne, atLeastOnce()).simpleMethod(); in shouldVerifyInOrderWhenTwoChunksAreEqual()
DDescriptiveMessagesWhenVerificationFailsTest.java216 verify(mock, atLeastOnce()).twoArgumentMethod(1, 2); in should_print_method_name_when_verifying_at_least_once()
226 verify(mock, atLeastOnce()).twoArgumentMethod(anyInt(), eq(100)); in should_print_method_when_matcher_used()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DMessageDeframerTest.java27 import static org.mockito.Mockito.atLeastOnce;
129 verify(listener, atLeastOnce()).bytesRead(anyInt()); in simplePayload()
142 verify(listener, atLeastOnce()).bytesRead(anyInt()); in smallCombinedPayloads()
156 verify(listener, atLeastOnce()).bytesRead(anyInt()); in endOfStreamWithPayloadShouldNotifyEndOfStream()
180 verify(listener, atLeastOnce()).bytesRead(anyInt()); in endOfStreamWithPartialMessageShouldNotifyDeframerClosedWithPartialMessage()
206 verify(listener, atLeastOnce()).bytesRead(anyInt()); in payloadSplitBetweenBuffers()
212 verify(listener, atLeastOnce()).bytesRead(anyInt()); in payloadSplitBetweenBuffers()
231 verify(listener, atLeastOnce()).bytesRead(anyInt()); in frameHeaderSplitBetweenBuffers()
236 verify(listener, atLeastOnce()).bytesRead(anyInt()); in frameHeaderSplitBetweenBuffers()
247 verify(listener, atLeastOnce()).bytesRead(anyInt()); in emptyPayload()
[all …]
/external/mockito/src/test/java/org/mockitousage/stacktrace/
DPointingStackTraceToActualInvocationChunkInOrderTest.java71 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdInteractionBecauseAtLeastOnceUsed()
85 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations()
97 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToFourthChunkBecauseTooManyActualInvocations()
DPointingStackTraceToActualInvocationInOrderTest.java55 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousVerified()
68 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdMethod()
/external/mockito/src/main/java/org/mockito/internal/verification/
DVerificationWrapper.java32 public VerificationMode atLeastOnce() { in atLeastOnce() method in VerificationWrapper
33 return copySelfWithNewVerificationMode(VerificationModeFactory.atLeastOnce()); in atLeastOnce()
DVerificationModeFactory.java12 public static VerificationMode atLeastOnce() { in atLeastOnce() method in VerificationModeFactory
/external/mockito/src/test/java/org/concurrentmockito/
DThreadVerifiesContinuoslyInteractingMockTest.java13 import static org.mockito.Mockito.atLeastOnce;
47 verify(mock, atLeastOnce()).simpleMethod(); in performTest()
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieDrawableTest.java24 import static org.mockito.Mockito.atLeastOnce;
92 verify(animatorListener, atLeastOnce()).onAnimationEnd(any(Animator.class), eq(false)); in testPlayWhenSystemAnimationDisabled()
104 verify(animatorListener, atLeastOnce()).onAnimationEnd(any(Animator.class), eq(false)); in testResumeWhenSystemAnimationDisabled()
/external/mockito/src/test/java/org/mockito/internal/progress/
DMockingProgressImplTest.java41 mockingProgress.verificationStarted(VerificationModeFactory.atLeastOnce()); in shouldCheckIfVerificationWasFinished()
43 mockingProgress.verificationStarted(VerificationModeFactory.atLeastOnce()); in shouldCheckIfVerificationWasFinished()
/external/downloader/src/test/java/com/google/android/downloader/
DDownloaderTest.java27 import static org.mockito.Mockito.atLeastOnce;
437 verify(mockCallback, atLeastOnce()).onStateChange(State.create(1, 0, 0)); in downloadOneFile_notFound()
446 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 0)); in downloadOneFile_notFound()
571 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 1)); in downloadOneFile_waitForConnectivity()
584 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 0)); in downloadOneFile_waitForConnectivity()
610 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 1)); in downloadOneFile_waitForConnectivity_canceled()
620 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 0)); in downloadOneFile_waitForConnectivity_canceled()
647 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 1)); in downloadOneFile_timeoutConnectivity()
660 verify(mockCallback, atLeastOnce()).onStateChange(State.create(0, 0, 0)); in downloadOneFile_timeoutConnectivity()
701 verify(mockCallback, atLeastOnce()).onStateChange(State.create(1, 1, 0)); in downloadTwoFiles_sequentially()
[all …]
/external/mockito/src/main/java/org/mockito/verification/
DVerificationWithTimeout.java55 VerificationMode atLeastOnce(); in atLeastOnce() method
DVerificationAfterDelay.java45 VerificationMode atLeastOnce(); in atLeastOnce() method
/external/mockito/src/test/java/org/mockitousage/bugs/
DAIOOBExceptionWithAtLeastTest.java31 verify(progressMonitor, atLeastOnce()).worked(anyInt()); in testCompleteProgress()
DShouldMocksCompareToBeConsistentWithEqualsTest.java61 verify(mock, atLeastOnce()).compareTo(any(Date.class)); in should_allow_stubbing_and_verifying_compare_to()
/external/easymock/src/org/easymock/
DIExpectationSetters.java143 IExpectationSetters<T> atLeastOnce(); in atLeastOnce() method
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoaderTest.java20 import static org.mockito.Mockito.atLeastOnce;
141 verify(adDisplayContainer, atLeastOnce()).setAdContainer(adViewGroup); in start_setsAdUiViewGroup()
142 verify(adDisplayContainer, atLeastOnce()).registerVideoControlsOverlay(adOverlayView); in start_setsAdUiViewGroup()
/external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/
DDeqpTestRunnerTest.java225 .andReturn(Integer.toString(version)).atLeastOnce(); in testGlesVersion()
367 .andReturn(Integer.toString(version)).atLeastOnce(); in testResultCode()
534 .andReturn(Integer.toString(version)).atLeastOnce(); in testRun_multipleTests()
632 .andReturn(Integer.toString(version)).atLeastOnce(); in testFiltering()
871 .andReturn(Integer.toString(version)).atLeastOnce(); in testRun_unexecutableTests()
959 .andReturn(Integer.toString(version)).atLeastOnce(); in testRun_queryPmListFailure()
1001 .andReturn(Integer.toString(version)).atLeastOnce(); in testRun_queryRenderabilityFailure()
1078 .andReturn(Integer.toString(version)).atLeastOnce(); in testOrientation()
1327 .andReturn(Integer.toString(version)).atLeastOnce(); in testRun_unsupportedPixelFormat()
1695 .andReturn(Integer.toString(version)).atLeastOnce(); in testInterrupt_killBeforeBatch()
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletDispatchIntegrationTest.java298 expect(requestMock.getRequestURI()).andReturn("/index.html?query=params").atLeastOnce(); in testQueryInRequestUri_regex()
334 expect(requestMock.getRequestURI()).andReturn("/index.html?query=params").atLeastOnce(); in testQueryInRequestUri()
/external/mockito/src/main/java/org/mockito/
DMockito.java2707 public static VerificationMode atLeastOnce() { in atLeastOnce() method in Mockito
2708 return VerificationModeFactory.atLeastOnce(); in atLeastOnce()

12