News for hackers. Stuff that matters.
Re:Paving the on-ramp to Java by Sankozi on Thursday September 29, 2022 @10:29AM (#33021158)
If static method behaves like a function I see very little reason for mocking. Do people mock also calls to complex constructors (which are too static methods)?

I think some people put unit testing to the extreme by not wanting to test logic outside of the unit tested (which is not possible to do fully). They write additional code for mocks so their tests could be less useful but more "pure".

There are no comments on this comment yet.