Testing

The Little Mocker

The following is a conversation around mocking:

What is this?:

interface Authorizer { public Boolean authorize(String username, String password); } 
...more.

When to Mock

A mock object is a very powerful tool, providing two major benefits: isolation and introspection. But like all power tools, mocks come with a cost....more.

Testing Recursion

A short post to start the new year. Let's imagine that you are building an application that requires the application of a specific algorithm, but...more.

BOC

BOC is a testing pattern that Unclebob briefly mentioned on fitnesse.org shortly after it was published. It describes the typical steps taken in an...more.

Self Shunt

The self-shunt method of testing has been conflicting for me. Self-shunt is a good testing pattern to test observers/views. A colleague of mine has...more.

Over Mocking

I’ve noticed using more mocks lately. Instead of using them sparingly for controlling services which are not instrumental to what I am testing, I’m...more.

Fresh Testing

Sometimes I sit down to write a test on something I haven’t worked on before or don’t know intimately, and I just can’t write...more.