Posts Tagged ‘tdd’

Pair Programming 101

March 9th, 2011

Overview

Pair programming is a technique where two programmers work at a single work station.  One person “drives” or has control of the mouse and keyboard.  The other person “navigates” or keeps track of where they are and where they are headed.  This is a perfect environment for teaching and learning to occur.
» Read more: Pair Programming 101

Would you start mocking me?

August 5th, 2010

One of the primary principles of unit testing is to test a small piece of functionality in isolation. In order to achieve this, mock objects are often necessary. Historically using mocks could be quite painful. After using several mock frameworks, my favorite by far is Mockito.

Tutorial

In this tutorial we will walk through examples of the most common features of Mockito. My sample project can be downloaded here.

Interfaces and Implementation

Some mocking frameworks only supported mocking interfaces. As a result our projects became bloated with useless interfaces that were only used for testing.  Mockito creates mock objects with interfaces or classes.
» Read more: Would you start mocking me?