Searched refs:localMock (Results 1 – 1 of 1) sorted by relevance
103 IMethods localMock = mock(IMethods.class, withSettings().stubOnly()); in test_stub_only_not_verifiable() local105 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()