Home
last modified time | relevance | path

Searched refs:anyInt (Results 1 – 20 of 20) 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.java15 import static org.mockito.BDDMockito.anyInt;
65 given(iMethods.toIntPrimitive(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
66 given(iMethods.toIntWrapper(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
104 given(iMethods.simpleMethod(anyString(), anyInt())) in can_return_based_on_strongly_typed_two_parameter_function()
118 given(iMethods.simpleMethod(anyString(), anyInt())) in will_execute_a_void_based_on_strongly_typed_two_parameter_function()
135 given(iMethods.threeArgumentMethodWithStrings(anyInt(), anyString(), anyString())) in can_return_based_on_strongly_typed_three_parameter_function()
151 given(iMethods.threeArgumentMethodWithStrings(anyInt(), anyString(), anyString())) in will_execute_a_void_based_on_strongly_typed_three_parameter_function()
168 given(iMethods.fourArgumentMethod(anyInt(), anyString(), anyString(), any(boolean[].class))) in can_return_based_on_strongly_typed_four_parameter_function()
185 given(iMethods.fourArgumentMethod(anyInt(), anyString(), anyString(), any(boolean[].class))) in will_execute_a_void_based_on_strongly_typed_four_parameter_function()
203 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/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/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DEditTextTest.java6 import static org.mockito.Matchers.anyInt;
82 … when(attrs.getAttributeIntValue(eq("android"), eq("maxLength"), anyInt())).thenReturn(maxLength); in attributeSetWithMaxLength()
/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/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