News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by acidictadpole on Wednesday December 04, 2019 @12:03PM (#21703995)
If you know there'll only be one concrete implementation, then yeah don't bother.

What people sometimes forget though is that any implementations of this in your tests are also concrete.

Some things like a DB accessor, will use a mocked/lite implementation in testing for code that doesn't need access to the db (but still needs to be provided data) to test it's functionality.

There are no comments on this comment yet.