3 ms·
> I believe Mockito can verify for you that unmocked stubs haven't been called. [0] As the other reply says, that doesn't help because it never gets that far.
by lmm 10y ago
> I believe Mockito can verify for you that unmocked stubs haven't been called. [0]
As the other reply says, that doesn't help because it never gets that far.
To my mind the article you link has the wrong premise, because I do make my data tests that way - I assert that the data is exactly what I expected. Surprise changes to data would be bad, as would surprise changes to state.