Searched refs:objectArgMethod (Results 1 – 9 of 9) sorted by relevance
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationExcludingStubsTest.java | 31 mock.objectArgMethod(stubbed); in shouldAllowToExcludeStubsForVerification() 34 verify(mock).objectArgMethod("foo"); in shouldAllowToExcludeStubsForVerification() 50 mock.objectArgMethod("1"); in shouldExcludeFromVerificationInOrder() 51 mock.objectArgMethod("2"); in shouldExcludeFromVerificationInOrder() 56 inOrder.verify(mock).objectArgMethod("1"); in shouldExcludeFromVerificationInOrder() 57 inOrder.verify(mock).objectArgMethod("2"); in shouldExcludeFromVerificationInOrder()
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | MoreMatchersTest.java | 28 when(mock.objectArgMethod(any(String.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting() 30 assertEquals("string", mock.objectArgMethod("foo")); in should_help_out_with_unnecessary_casting() 117 when(mock.objectArgMethod(isNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks() 118 when(mock.objectArgMethod(notNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks() 119 when(mock.objectArgMethod(isNotNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks() 121 assertEquals("string", mock.objectArgMethod(null)); in should_help_out_with_unnecessary_casting_of_nullity_checks() 122 assertEquals("string", mock.objectArgMethod("foo")); in should_help_out_with_unnecessary_casting_of_nullity_checks() 123 assertEquals("string", mock.objectArgMethod("foo")); in should_help_out_with_unnecessary_casting_of_nullity_checks()
|
D | MatchersTest.java | 338 mock.objectArgMethod(new int[]{1, 2}); in should_use_smart_equals_for_primitive_arrays() 339 verify(mock).objectArgMethod(eq(new int[]{1, 2})); in should_use_smart_equals_for_primitive_arrays() 340 verify(mock).objectArgMethod(new int[]{1, 2}); in should_use_smart_equals_for_primitive_arrays()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksSerializationForAnnotationTest.java | 102 when(imethodsMock.objectArgMethod(value)).thenReturn(value); in should_serialize_method_call_with_parameters_that_are_serializable() 109 assertEquals(value, readObject.objectArgMethod(value)); in should_serialize_method_call_with_parameters_that_are_serializable() 115 when(imethodsMock.objectArgMethod(anyString())).thenReturn(value); in should_serialize_method_calls_using_any_string_matcher() 122 assertEquals(value, readObject.objectArgMethod("")); in should_serialize_method_calls_using_any_string_matcher() 128 when(imethodsMock.objectArgMethod(anyString())).thenReturn(value); in should_verify_called_n_times_for_serialized_mock() 129 imethodsMock.objectArgMethod(""); in should_verify_called_n_times_for_serialized_mock() 136 verify(readObject, times(1)).objectArgMethod(""); in should_verify_called_n_times_for_serialized_mock() 215 when(imethodsMock.objectArgMethod(anyString())).thenReturn(value); in should_remember_interactions_for_serialized_mock() 216 imethodsMock.objectArgMethod("happened"); in should_remember_interactions_for_serialized_mock() 223 verify(readObject, never()).objectArgMethod("never happened"); in should_remember_interactions_for_serialized_mock() [all …]
|
D | MocksSerializationTest.java | 114 when(mock.objectArgMethod(value)).thenReturn(value); in should_serialize_method_call_with_parameters_that_are_serializable() 121 assertEquals(value, readObject.objectArgMethod(value)); in should_serialize_method_call_with_parameters_that_are_serializable() 128 when(mock.objectArgMethod(anyString())).thenReturn(value); in should_serialize_method_calls_using_any_string_matcher() 135 assertEquals(value, readObject.objectArgMethod("")); in should_serialize_method_calls_using_any_string_matcher() 142 when(mock.objectArgMethod(anyString())).thenReturn(value); in should_verify_called_n_times_for_serialized_mock() 143 mock.objectArgMethod(""); in should_verify_called_n_times_for_serialized_mock() 150 verify(readObject, times(1)).objectArgMethod(""); in should_verify_called_n_times_for_serialized_mock() 236 when(mock.objectArgMethod(anyString())).thenReturn(value); in should_remember_interactions_for_serialized_mock() 237 mock.objectArgMethod("happened"); in should_remember_interactions_for_serialized_mock() 244 verify(readObject, never()).objectArgMethod("never happened"); in should_remember_interactions_for_serialized_mock() [all …]
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | NPEWithCertainMatchersTest.java | 56 mock.objectArgMethod("not null"); in shouldNotThrowNPEWhenNullPassedToEq() 58 verify(mock).objectArgMethod(eq(null)); in shouldNotThrowNPEWhenNullPassedToEq() 63 mock.objectArgMethod("not null"); in shouldNotThrowNPEWhenNullPassedToSame() 65 verify(mock).objectArgMethod(same(null)); in shouldNotThrowNPEWhenNullPassedToSame()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithAdditionalAnswersTest.java | 49 given(iMethods.objectArgMethod(any())).will(returnsFirstArg()); in can_return_arguments_of_invocation() 53 assertThat(iMethods.objectArgMethod("first")).isEqualTo("first"); in can_return_arguments_of_invocation() 62 … given(iMethods.objectArgMethod(any())).will(answersWithDelay(sleepyTime, returnsFirstArg())); in can_return_after_delay() 65 assertThat(iMethods.objectArgMethod("first")).isEqualTo("first"); in can_return_after_delay()
|
/external/mockito/src/test/java/org/mockitousage/ |
D | IMethods.java | 209 Object objectArgMethod(Object str); in objectArgMethod() method
|
D | MethodsImpl.java | 394 public Object objectArgMethod(Object str) { in objectArgMethod() method in MethodsImpl
|