Home
last modified time | relevance | path

Searched refs:objectReturningMethod (Results 1 – 6 of 6) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/stubbing/
DBasicStubbingTest.java32 when(mock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in should_evaluate_latest_stubbing_first()
33 when(mock.objectReturningMethod(200)).thenReturn(200); in should_evaluate_latest_stubbing_first()
35 assertEquals(200, mock.objectReturningMethod(200)); in should_evaluate_latest_stubbing_first()
36 assertEquals(100, mock.objectReturningMethod(666)); in should_evaluate_latest_stubbing_first()
37 … assertEquals("default behavior should return null", null, mock.objectReturningMethod("blah")); in should_evaluate_latest_stubbing_first()
106 when(localMock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in test_stub_only_not_verifiable()
107 when(localMock.objectReturningMethod(200)).thenReturn(200); in test_stub_only_not_verifiable()
109 assertEquals(200, localMock.objectReturningMethod(200)); in test_stub_only_not_verifiable()
110 assertEquals(100, localMock.objectReturningMethod(666)); in test_stub_only_not_verifiable()
111 …assertEquals("default behavior should return null", null, localMock.objectReturningMethod("blah")); in test_stub_only_not_verifiable()
[all …]
DSmartNullsStubbingTest.java98 Object smartNull = mock.objectReturningMethod(); in shouldNotThrowSmartNullPointerOnToString()
107 Object smartNull = mock.objectReturningMethod(); in shouldNotThrowSmartNullPointerOnObjectMethods()
DReturningDefaultValuesTest.java37 assertEquals(null, mock.objectReturningMethod()); in shouldReturnAllKindsOfPrimitives()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DResetTest.java50 when(mock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in shouldRemoveAllStubbing()
51 when(mock.objectReturningMethod(200)).thenReturn(200); in shouldRemoveAllStubbing()
53 assertNull(mock.objectReturningMethod(200)); in shouldRemoveAllStubbing()
54 … assertEquals("default behavior should return null", null, mock.objectReturningMethod("blah")); in shouldRemoveAllStubbing()
/external/mockito/src/test/java/org/mockitousage/
DIMethods.java45 Object objectReturningMethod(Object ... objects); in objectReturningMethod() method
DMethodsImpl.java76 public Object objectReturningMethod(Object... objects) { in objectReturningMethod() method in MethodsImpl