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.java104 IMethods localMock = mock(IMethods.class, withSettings().stubOnly()); in test_stub_only_not_verifiable() local
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()
114 verify(localMock, atLeastOnce()).objectReturningMethod(eq(200)); in test_stub_only_not_verifiable()
122 IMethods localMock = mock(IMethods.class, withSettings().stubOnly()); in test_stub_only_not_verifiable_fail_fast() local
125 verify(localMock); // throws exception before method invocation in test_stub_only_not_verifiable_fail_fast()