Chapter 14. Testing design patterns

 

This chapter covers

  • Testing the Observer/Observable pattern
  • Testing the Singleton pattern
  • Testing the Factory pattern
  • Testing the Template Method pattern

14.1. Test an Observer (Event Listener)

14.2. Test an Observable (Event Source)

14.3. Test a Singleton

14.4. Test a Singleton’s client

14.5. Test an object factory

14.6. Test a template method’s implementation

sitemap