Tag Archives: test

Mockito and void methods on mock objects

SO I have class TestFoo { } TestFoo s1 = Mockito.mock(TestFoo.class); TestFoo s2 = Mockito.mock(TestFoo.class); The Mockito doc “Real Partial Mocks” says to do this: when(mock.someMethod()).thenCallRealMethod(); we get the error “The method when(T) in the type Mockito is not applicable … Continue reading

Posted in Computers, Software | Tagged , , , | Leave a comment