/external/mockito/src/test/java/org/mockitousage/stacktrace/ |
D | PointingStackTraceToActualInvocationInOrderTest.java | 55 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousVerified() 56 inOrder.verify(mockTwo).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousVerified() 68 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdMethod() 80 inOrder.verify(mock).simpleMethod(anyInt()); in shouldPointToSecondMethod() 81 inOrder.verify(mockTwo).simpleMethod(anyInt()); in shouldPointToSecondMethod() 94 inOrder.verify(mock, times(0)).simpleMethod(anyInt()); in shouldPointToFirstMethodBecauseOfTooManyActualInvocations() 103 inOrder.verify(mock).simpleMethod(anyInt()); in shouldPointToSecondMethodBecauseOfTooManyActualInvocations() 106 inOrder.verify(mockTwo, times(0)).simpleMethod(anyInt()); in shouldPointToSecondMethodBecauseOfTooManyActualInvocations() 115 inOrder.verify(mock).simpleMethod(anyInt()); in shouldPointToFourthMethodBecauseOfTooLittleActualInvocations() 116 inOrder.verify(mockTwo).simpleMethod(anyInt()); in shouldPointToFourthMethodBecauseOfTooLittleActualInvocations() [all …]
|
D | PointingStackTraceToActualInvocationChunkInOrderTest.java | 58 inOrder.verify(mock, times(2)).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousInvocation() 59 inOrder.verify(mockTwo, times(2)).simpleMethod(anyInt()); in shouldPointStackTraceToPreviousInvocation() 71 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdInteractionBecauseAtLeastOnceUsed() 83 inOrder.verify(mock, times(2)).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations() 84 inOrder.verify(mockTwo, times(2)).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations() 85 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToThirdChunkWhenTooLittleActualInvocations() 97 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt()); in shouldPointToFourthChunkBecauseTooManyActualInvocations() 100 inOrder.verify(mockTwo, times(0)).simpleMethod(anyInt()); in shouldPointToFourthChunkBecauseTooManyActualInvocations()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithAdditionalAnswersTest.java | 17 import static org.mockito.BDDMockito.anyInt; 81 given(iMethods.toIntPrimitive(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers() 82 given(iMethods.toIntWrapper(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers() 120 given(iMethods.simpleMethod(anyString(), anyInt())) in can_return_based_on_strongly_typed_two_parameter_function() 134 given(iMethods.simpleMethod(anyString(), anyInt())) in will_execute_a_void_based_on_strongly_typed_two_parameter_function() 151 given(iMethods.threeArgumentMethodWithStrings(anyInt(), anyString(), anyString())) in can_return_based_on_strongly_typed_three_parameter_function() 167 given(iMethods.threeArgumentMethodWithStrings(anyInt(), anyString(), anyString())) in will_execute_a_void_based_on_strongly_typed_three_parameter_function() 184 given(iMethods.fourArgumentMethod(anyInt(), anyString(), anyString(), any(boolean[].class))) in can_return_based_on_strongly_typed_four_parameter_function() 201 given(iMethods.fourArgumentMethod(anyInt(), anyString(), anyString(), any(boolean[].class))) in will_execute_a_void_based_on_strongly_typed_four_parameter_function() 219 given(iMethods.simpleMethod(anyString(), anyInt(), anyInt(), anyInt(), anyInt())) in can_return_based_on_strongly_typed_five_parameter_function() [all …]
|
D | DeepStubbingTest.java | 152 when(sf.createSocket(anyString(), anyInt()).getOutputStream()).thenReturn(out); in withAnyPatternArguments() 199 when(sf.createSocket(eq("google.com"), anyInt()).getPort()).thenReturn(b); in withPatternPrimitive()
|
D | StubbingUsingDoReturnTest.java | 46 doReturn("bar").when(mock).simpleMethod(eq("one"), anyInt()); in should_stub_with_args()
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | AsyncFrameWriterTest.java | 20 import static org.mockito.Matchers.anyInt; 63 verify(frameWriter, times(1)).ping(anyBoolean(), anyInt(), anyInt()); in noCoalesceRequired() 77 verify(frameWriter, times(2)).ping(anyBoolean(), anyInt(), anyInt()); in flushCoalescing_shouldNotMergeTwoDistinctFlushes() 91 inOrder.verify(frameWriter, times(2)).ping(anyBoolean(), anyInt(), anyInt()); in flushCoalescing_shouldMergeTwoQueuedFlushes()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | MessageDeframerTest.java | 25 import static org.mockito.Matchers.anyInt; 129 verify(listener, atLeastOnce()).bytesRead(anyInt()); in simplePayload() 142 verify(listener, atLeastOnce()).bytesRead(anyInt()); in smallCombinedPayloads() 156 verify(listener, atLeastOnce()).bytesRead(anyInt()); in endOfStreamWithPayloadShouldNotifyEndOfStream() 168 verify(listener, atLeast(1)).bytesRead(anyInt()); in endOfStreamShouldNotifyEndOfStream() 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() [all …]
|
D | RetriableStreamTest.java | 31 import static org.mockito.Matchers.anyInt; 840 when(retriableStreamRecorder.newSubstream(anyInt())) in closedWhileDraining() 865 verify(mockStream1, never()).request(anyInt()); in closedWhileDraining() 866 verify(mockStream2, never()).request(anyInt()); in closedWhileDraining() 970 when(retriableStreamRecorder.newSubstream(anyInt())).thenReturn( in expBackoff_maxBackoff_maxRetryAttempts() 1070 when(retriableStreamRecorder.newSubstream(anyInt())).thenReturn( in pushback() 1171 doReturn(mockStream1).when(retriableStreamRecorder).newSubstream(anyInt()); in pushback_noRetry() 1230 doReturn(mockStream).when(retriableStreamRecorder).newSubstream(anyInt()); in throttledStream_FailWithRetriableStatusCode_WithoutPushback() 1250 doReturn(mockStream).when(retriableStreamRecorder).newSubstream(anyInt()); in throttledStream_FailWithNonRetriableStatusCode_WithoutPushback() 1272 doReturn(mockStream).when(retriableStreamRecorder).newSubstream(anyInt()); in throttledStream_FailWithRetriableStatusCode_WithRetriablePushback() [all …]
|
/external/walt/android/WALT/app/src/test/java/org/chromium/latency/walt/ |
D | HistogramChartTest.java | 33 import static org.mockito.Matchers.anyInt; 47 when(android.graphics.Color.rgb(anyInt(), anyInt(), anyInt())).thenReturn(0); in setUp()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationInOrderTest.java | 92 verify(mockOne, times(4)).simpleMethod(anyInt()); in shouldVerifyInOrderUsingMatcher() 94 inOrder.verify(mockOne, times(2)).simpleMethod(anyInt()); in shouldVerifyInOrderUsingMatcher() 96 inOrder.verify(mockOne, times(2)).simpleMethod(anyInt()); in shouldVerifyInOrderUsingMatcher() 98 inOrder.verify(mockOne, times(3)).simpleMethod(anyInt()); in shouldVerifyInOrderUsingMatcher()
|
D | VerificationOnMultipleMocksUsingMatchersTest.java | 34 verify(list).add(anyInt(), eq("test two")); in shouldVerifyUsingMatchers() 59 verify(map, times(2)).put(anyObject(), anyInt()); in shouldVerifyMultipleMocks()
|
D | OnlyVerificationTest.java | 17 import static org.mockito.Matchers.anyInt; 36 verify(mock, only()).get(anyInt()); in shouldVerifyMethodWasInvokedExclusivelyWithMatchersUsage()
|
D | VerificationUsingMatchersTest.java | 40 verify(mock, times(3)).simpleMethod(anyInt()); in shouldVerifyExactNumberOfInvocationsUsingMatcher()
|
D | DescriptiveMessagesOnVerificationInOrderErrorsTest.java | 169 inOrder.verify(one, atLeastOnce()).simpleMethod(anyInt()); in shouldPrintTooLittleInvocations()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | AIOOBExceptionWithAtLeastTest.java | 30 verify(progressMonitor).beginTask(anyString(), anyInt()); in testCompleteProgress() 31 verify(progressMonitor, atLeastOnce()).worked(anyInt()); in testCompleteProgress()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/ |
D | MediaSourceEventDispatcherTest.java | 20 import static org.mockito.ArgumentMatchers.anyInt; 139 verify(subclassListener, never()).subclassMethod(anyInt(), any()); in listenerDoesntReceiveEventsDispatchedToSubclass() 153 verify(subclassListener, never()).onMediaPeriodCreated(anyInt(), any()); in listenerDoesntReceiveEventsDispatchedToSuperclass() 181 verify(mediaSourceEventListener, never()).onMediaPeriodCreated(anyInt(), any()); in removingListenerStopsEventDispatch()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/ |
D | FakeContextBuilder.java | 20 import static org.mockito.ArgumentMatchers.anyInt; 54 when(packageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(null); in FakeContextBuilder() 95 when(packageManager.resolveActivity(any(Intent.class), anyInt())) in build()
|
/external/mockito/src/test/java/org/mockitousage/misuse/ |
D | DetectingMisusedMatchersTest.java | 20 import static org.mockito.Mockito.anyInt; 46 anyInt(); in misplaced_anyInt_argument_matcher()
|
/external/exoplayer/tree/extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/ |
D | CastPlayerTest.java | 20 import static org.mockito.ArgumentMatchers.anyInt; 180 when(mockRemoteMediaClient.queueSetRepeatMode(anyInt(), any())).thenReturn(mockPendingResult); in setRepeatMode_masksRemoteState() 203 when(mockRemoteMediaClient.queueSetRepeatMode(anyInt(), any())).thenReturn(mockPendingResult); in setRepeatMode_updatesUponResultChange() 251 .queueLoad(queueItemsArgumentCaptor.capture(), eq(1), anyInt(), eq(2000L), any()); in setMediaItems_callsRemoteMediaClient() 271 .queueLoad(queueItemsArgumentCaptor.capture(), eq(0), anyInt(), eq(0L), any()); in setMediaItems_doNotReset_callsRemoteMediaClient() 413 verify(mockRemoteMediaClient, never()).queueReorderItems(any(), anyInt(), any()); in moveMediaItems_noItems_doesNotCallRemoteMediaClient() 424 verify(mockRemoteMediaClient, never()).queueReorderItems(any(), anyInt(), any()); in moveMediaItems_noMove_doesNotCallRemoteMediaClient()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/drm/ |
D | OfflineLicenseHelperTest.java | 21 import static org.mockito.ArgumentMatchers.anyInt; 51 when(mediaDrm.getKeyRequest(any(), any(), anyInt(), any())) in setUp()
|
/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/ |
D | HlsMediaPeriodTest.java | 18 import static org.mockito.ArgumentMatchers.anyInt; 77 when(mockDataSourceFactory.createDataSource(anyInt())).thenReturn(mock(DataSource.class)); in getSteamKeys_isCompatibleWithHlsMasterPlaylistFilter()
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | VerificationAndStubbingUsingMatchersTest.java | 68 verify(one).simpleMethod(anyInt()); in shouldVerifyUsingMatchers()
|
D | AnyXMatchersAcceptNullsTest.java | 59 when(mock.forInteger(anyInt())).thenReturn("0"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
|
D | MatchersTest.java | 44 import static org.mockito.Mockito.anyInt; 285 when(mock.oneArg(anyInt())).thenReturn("5"); in any_T_matcher() 438 when(mock.oneArg(anyInt())).thenReturn("other"); in or_matcher()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | DiskBasedCacheTest.java | 28 import static org.mockito.ArgumentMatchers.anyInt; 405 doThrow(IOException.class).when(mockedOutputStream).write(anyInt()); in testFileIsDeletedWhenWriteHeaderFails() 415 verify(mockedOutputStream, atLeastOnce()).write(anyInt()); in testFileIsDeletedWhenWriteHeaderFails()
|