Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockitousage/stubbing/
DBasicStubbingTest.java103 IMethods localMock = mock(IMethods.class, withSettings().stubOnly()); in test_stub_only_not_verifiable() local
105 when(localMock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in test_stub_only_not_verifiable()
106 when(localMock.objectReturningMethod(200)).thenReturn(200); in test_stub_only_not_verifiable()
108 assertEquals(200, localMock.objectReturningMethod(200)); in test_stub_only_not_verifiable()
109 assertEquals(100, localMock.objectReturningMethod(666)); in test_stub_only_not_verifiable()
110 …assertEquals("default behavior should return null", null, localMock.objectReturningMethod("blah")); in test_stub_only_not_verifiable()
113 verify(localMock, atLeastOnce()).objectReturningMethod(eq(200)); in test_stub_only_not_verifiable()