Tag Archives: Testing

Guerilla usability

Google launch their Cloud Test Lab today. I’m reminded of how I first learned the value of qualitative user testing and how I forced my employers to take notice too…


 

Between 1997 and 2000 I managed an Internet café in West London, for a startup who also ran a small web-based email service. Continue reading Guerilla usability


 

How to verify that something implements an interface with Mockito

If you want to write a unit test which verifies that something implements a particular interface, or extends a particular class, here’s how…

Continue reading How to verify that something implements an interface with Mockito

Dependency Injection by Extension pattern

The problem

You need to use some kind of Dependency Injection (DI for short) to provision some System Under Test (SUT for short) in tests you’re writing, but can’t or don’t want to use a DI framework to do so.

Alternative titles for this post include:

  • Dependency Injection without a Dependency Injection framework
  • Why misusing the default namespace for tests is evil
  • Make code more testable without completely messing it up

Continue reading Dependency Injection by Extension pattern