Home
last modified time | relevance | path

Searched refs:threeArgumentMethod (Results 1 – 7 of 7) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationUsingMatchersTest.java68 mock.threeArgumentMethod(11, "", "01234"); in shouldVerifyUsingMixedMatchers()
71 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
76 mock.threeArgumentMethod(8, new Object(), "01234"); in shouldVerifyUsingMixedMatchers()
79 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
84 mock.threeArgumentMethod(8, "", "no match"); in shouldVerifyUsingMixedMatchers()
87 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
92 mock.threeArgumentMethod(8, "", "123"); in shouldVerifyUsingMixedMatchers()
94 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
DDescriptiveMessagesWhenVerificationFailsTest.java60 verify(mock).threeArgumentMethod(12, new Foo(), "xx"); in should_print_method_name_and_arguments()
163 mock.threeArgumentMethod(1, "2", "3"); in should_print_first_unexpected_invocation()
189 mock.threeArgumentMethod(1, "2", "3"); in should_print_first_unexpected_invocation_when_verifying_zero_interactions()
371 verify(mock).threeArgumentMethod(12, new Foo(), "xx"); in should_print_method_name_and_arguments_of_other_interactions_with_different_methods()
/external/mockito/src/test/java/org/mockitousage/matchers/
DInvalidUseOfMatchersTest.java33 when(mock.threeArgumentMethod(1, "2", "3")).thenReturn(null); in should_detect_wrong_number_of_matchers_when_stubbing()
35 when(mock.threeArgumentMethod(1, eq("2"), "3")).thenReturn(null); in should_detect_wrong_number_of_matchers_when_stubbing()
93 mock.threeArgumentMethod(1, "asd", eq("asd")); in should_scream_when_Matchers_count_dont_match_parameter_count()
DMatchersTest.java448 when(mock.threeArgumentMethod(eq(1), isNull(), eq(""))).thenReturn("1"); in null_matcher()
449 when(mock.threeArgumentMethod(eq(1), not(isNull()), eq(""))).thenReturn("2"); in null_matcher()
451 assertEquals("1", mock.threeArgumentMethod(1, null, "")); in null_matcher()
452 assertEquals("2", mock.threeArgumentMethod(1, new Object(), "")); in null_matcher()
478 when(mock.threeArgumentMethod(eq(1), notNull(), eq(""))).thenReturn("1"); in not_null_matcher()
479 when(mock.threeArgumentMethod(eq(1), not(isNotNull()), eq(""))).thenReturn("2"); in not_null_matcher()
481 assertEquals("1", mock.threeArgumentMethod(1, new Object(), "")); in not_null_matcher()
482 assertEquals("2", mock.threeArgumentMethod(1, null, "")); in not_null_matcher()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java50 given(iMethods.threeArgumentMethod(eq(0), any(), anyString())).will(returnsSecondArg()); in can_return_arguments_of_invocation()
51 given(iMethods.threeArgumentMethod(eq(1), any(), anyString())).will(returnsLastArg()); in can_return_arguments_of_invocation()
54 assertThat(iMethods.threeArgumentMethod(0, "second", "whatever")).isEqualTo("second"); in can_return_arguments_of_invocation()
55 assertThat(iMethods.threeArgumentMethod(1, "whatever", "last")).isEqualTo("last"); in can_return_arguments_of_invocation()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java129 Object threeArgumentMethod(int valueOne, Object valueTwo, String valueThree); in threeArgumentMethod() method
DMethodsImpl.java244 public Object threeArgumentMethod(int valueOne, Object valueTwo, String valueThree) { in threeArgumentMethod() method in MethodsImpl