Home
last modified time | relevance | path

Searched refs:anyInt (Results 1 – 24 of 24) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/stacktrace/
DPointingStackTraceToActualInvocationInOrderTest.java55 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 …]
DPointingStackTraceToActualInvocationChunkInOrderTest.java58 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/
DStubbingWithAdditionalAnswersTest.java17 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 …]
DDeepStubbingTest.java152 when(sf.createSocket(anyString(), anyInt()).getOutputStream()).thenReturn(out); in withAnyPatternArguments()
199 when(sf.createSocket(eq("google.com"), anyInt()).getPort()).thenReturn(b); in withPatternPrimitive()
DStubbingUsingDoReturnTest.java46 doReturn("bar").when(mock).simpleMethod(eq("one"), anyInt()); in should_stub_with_args()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DAsyncFrameWriterTest.java20 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()
DOkHttpClientTransportTest.java37 import static org.mockito.Matchers.anyInt;
751 .data(anyBoolean(), anyInt(), any(Buffer.class), anyInt()); in outboundFlowControlWithInitialWindowSizeChange()
1024 .synStream(anyBoolean(), anyBoolean(), eq(3), anyInt(), anyListHeader()); in pendingStreamSucceedAfterShutdown()
1474 .synStream(anyBoolean(), anyBoolean(), eq(3), anyInt(), anyListHeader()); in shutdownDuringConnecting()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DMessageDeframerTest.java25 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 …]
DRetriableStreamTest.java31 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/
DHistogramChartTest.java33 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/
DVerificationInOrderTest.java92 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()
DVerificationOnMultipleMocksUsingMatchersTest.java34 verify(list).add(anyInt(), eq("test two")); in shouldVerifyUsingMatchers()
59 verify(map, times(2)).put(anyObject(), anyInt()); in shouldVerifyMultipleMocks()
DOnlyVerificationTest.java17 import static org.mockito.Matchers.anyInt;
36 verify(mock, only()).get(anyInt()); in shouldVerifyMethodWasInvokedExclusivelyWithMatchersUsage()
DVerificationUsingMatchersTest.java40 verify(mock, times(3)).simpleMethod(anyInt()); in shouldVerifyExactNumberOfInvocationsUsingMatcher()
DDescriptiveMessagesOnVerificationInOrderErrorsTest.java169 inOrder.verify(one, atLeastOnce()).simpleMethod(anyInt()); in shouldPrintTooLittleInvocations()
DDescriptiveMessagesWhenVerificationFailsTest.java226 verify(mock, atLeastOnce()).twoArgumentMethod(anyInt(), eq(100)); in should_print_method_when_matcher_used()
/external/mockito/src/test/java/org/mockitousage/bugs/
DAIOOBExceptionWithAtLeastTest.java30 verify(progressMonitor).beginTask(anyString(), anyInt()); in testCompleteProgress()
31 verify(progressMonitor, atLeastOnce()).worked(anyInt()); in testCompleteProgress()
/external/mockito/src/test/java/org/mockitousage/misuse/
DDetectingMisusedMatchersTest.java20 import static org.mockito.Mockito.anyInt;
46 anyInt(); in misplaced_anyInt_argument_matcher()
/external/mockito/src/test/java/org/mockitousage/matchers/
DVerificationAndStubbingUsingMatchersTest.java68 verify(one).simpleMethod(anyInt()); in shouldVerifyUsingMatchers()
DAnyXMatchersAcceptNullsTest.java59 when(mock.forInteger(anyInt())).thenReturn("0"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
DMatchersTest.java44 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/
DDiskBasedCacheTest.java28 import static org.mockito.ArgumentMatchers.anyInt;
405 doThrow(IOException.class).when(mockedOutputStream).write(anyInt()); in testFileIsDeletedWhenWriteHeaderFails()
415 verify(mockedOutputStream, atLeastOnce()).write(anyInt()); in testFileIsDeletedWhenWriteHeaderFails()
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java350 public static int anyInt() { in anyInt() method in ArgumentMatchers
/external/easymock/src/org/easymock/
DEasyMock.java243 public static int anyInt() { in anyInt() method in EasyMock