Re:Six Years of Professional Clojure
by joelbluminator on Monday August 02, 2021 @03:19PM
(#28041362)
And ... is the whole user being mocked or just the method?
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/or...
User mock = mock(User.java)
Should have been
User mock = mock(User.class)
[1] https://site.mockito.org/