Browsing All posts tagged under »private accessors«

Testing methods that depend upon a singleton class

December 11, 2008

3

Singleton is probably one of the most (mis-)used design patterns. In this article I intend to lay out a scenario and then demonstrate how we can go about testing methods that depend upon a singleton class. Finally I’ll recap the whole approach in a bulleted list for easy reference. Let’s restrict our problem to involve… [Read more…]

Follow

Get every new post delivered to your Inbox.