Searched refs:objectReturningMethodNoArgs (Results 1 – 9 of 9) sorted by relevance
/external/mockito/src/test/java/org/mockitousage/ |
D | CompilationWarningsTest.java | 23 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 24 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 25 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 26 … doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 27 …eption(), new IllegalArgumentException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 28 … doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 31 … doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 33 …re()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() [all …]
|
D | IMethods.java | 47 Object objectReturningMethodNoArgs(); in objectReturningMethodNoArgs() method
|
D | MethodsImpl.java | 80 public Object objectReturningMethodNoArgs() { in objectReturningMethodNoArgs() method in MethodsImpl
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithExtraAnswersTest.java | 30 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldWorkAsStandardMockito() 33 assertEquals(1, mock.objectReturningMethodNoArgs()); in shouldWorkAsStandardMockito() 34 assertEquals(2, mock.objectReturningMethodNoArgs()); in shouldWorkAsStandardMockito() 35 assertEquals(3, mock.objectReturningMethodNoArgs()); in shouldWorkAsStandardMockito() 37 assertEquals(3, mock.objectReturningMethodNoArgs()); in shouldWorkAsStandardMockito() 38 assertEquals(3, mock.objectReturningMethodNoArgs()); in shouldWorkAsStandardMockito() 45 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldReturnNullIfNecessary() 48 assertEquals(1, mock.objectReturningMethodNoArgs()); in shouldReturnNullIfNecessary() 49 assertEquals(null, mock.objectReturningMethodNoArgs()); in shouldReturnNullIfNecessary() 50 assertEquals(null, mock.objectReturningMethodNoArgs()); in shouldReturnNullIfNecessary()
|
D | StubbingUsingDoReturnTest.java | 140 .when(mock).objectReturningMethodNoArgs(); in should_allow_consecutive_return_values() 142 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("foo"); in should_allow_consecutive_return_values() 143 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("bar"); in should_allow_consecutive_return_values() 145 mock.objectReturningMethodNoArgs(); in should_allow_consecutive_return_values() 149 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo(430L); in should_allow_consecutive_return_values() 150 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo(new byte[0]); in should_allow_consecutive_return_values() 151 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("qix"); in should_allow_consecutive_return_values() 152 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("qix"); in should_allow_consecutive_return_values() 264 doReturn("foo").when(mock).objectReturningMethodNoArgs(); in should_allow_stubbing_when_types_match_signature()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | StubbingMocksThatAreConfiguredToReturnMocksTest.java | 20 when(mock.objectReturningMethodNoArgs()).thenReturn(null); in shouldAllowStubbingMocksConfiguredWithRETURNS_MOCKS() 26 doReturn(null).when(mock).objectReturningMethodNoArgs(); in shouldAllowStubbingMocksConfiguredWithRETURNS_MOCKSWithDoApi()
|
/external/mockito/src/test/java/org/mockitousage/customization/ |
D | BDDMockitoTest.java | 108 given(mock.objectReturningMethodNoArgs()) in should_return_consecutively() 111 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("foo"); in should_return_consecutively() 112 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("bar"); in should_return_consecutively() 113 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo(12L); in should_return_consecutively() 114 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo(new byte[0]); in should_return_consecutively()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksSerializationForAnnotationTest.java | 89 when(imethodsMock.objectReturningMethodNoArgs()).thenReturn(value); in should_all_mock_and_serializable_value_to_be_serialized() 96 assertEquals(value, readObject.objectReturningMethodNoArgs()); in should_all_mock_and_serializable_value_to_be_serialized()
|
D | MocksSerializationTest.java | 100 when(mock.objectReturningMethodNoArgs()).thenReturn(value); in should_all_mock_and_serializable_value_to_be_serialized() 107 assertEquals(value, readObject.objectReturningMethodNoArgs()); in should_all_mock_and_serializable_value_to_be_serialized()
|