|
|
|
|
|
by throwaway_fjmr
1783 days ago
|
|
I think what you want is a "spy" (partial mock), not a full "mock", but yes, both are possible. You can partially mock classes, i.e., specific methods only. Syntax is almost the same, instead of mock(User.class) you write spy(User.class). |
|