3 ms·
It creates a stub, but you can also configure it to pass any method calls to original implementation. You should be tiping your hat i think. https://javadoc.io
by vincnetas 5y ago
It creates a stub, but you can also configure it to pass any method calls to original implementation. You should be tiping your hat i think.
https://javadoc.io/static/org.mockito/mockito-core/3.11.2/org/mockito/Answers.html https://javadoc.io/static/org.mockito/mockito-core/3.11.2/or...
User mock = mock(User.java)
Should have been
User mock = mock(User.class)
- hota_mazi 5y agoAh oops, I've been writing exclusively Kotlin for several years, my Java is becoming rusty (no pun intended).