News for hackers. Stuff that matters.
Re:So Singletons are bad, then what? by l0u on Thursday January 30, 2014 @04:01PM (#7153334)
In my case a cache could be something remote, having any calls directly to that will slow down unit tests a lot, having one or two calls to it unit testing the cache implementation it self is OK, but having every method which makes use of it make those calls isn't going to work.

In reply to your original question, its not extremely bad if you can't unit test that class alone , but in this case you wouldn't be able to unit test anything which uses it either.

There are no comments on this comment yet.