For those of you who are attending my TDD class tonight, you’ll realize that I mentioned several times that learning to use test doubles effectively takes time… I’ve been using test doubles in my tests for half a decade and I still learn something new everytime. I’ve included some links to material to help you [...]
Archive for the ‘Test Driven Development’ Category
TDD’ing Getters and Setters Considered Harmful
Over the past four years I have at various times over and over explained to my co-developers why writing tests against setters and getters is bad, dealt with the whole “metrics” argument, and quite frankly I start to get weary repeating myself every three months. While I was driving into work today, I started thinking [...]
Mockito for JVM 1.4 Released
For those of you who didn’t know, I’m currently contracted at a workplace that is still stuck using java 1.4 (I heard they might ring in 2010 by upgrading, but we’ll see). This has create a number of difficulties, chief amongst them (in my view) that I can’t use Mockito and most people use EasMock… [...]
Fine Grained Stub Behavior With Mockito
Continuing a trend of Mockito related articles, I thought I’d blog about using another feature I recently discovered while trying to figure out how to implement fine grained behavior in mockito. First, let me set the stage… I had a method call I was writing examples for that was a typical Castor marshal operation, which [...]
Using Mockito With JUnit3
I’ve recently been stuck in Java 1.4 land, and have to deal with the great sadness that comes with no generics, no annotations, and none of the other niceties that Java5 provides. One of the things I had been missing is not having Mockito, and I’d prefer not using EasyMock or JMock because the 1.4 [...]
Beware Code Coverage Metrics
Yesterday during our morning huddle one of the developer’s mentioned that on the story he was working on he had achieved 97% code coverage and this got me thinking a bit about something that’s been on the tip of my mind for awhile. Now, I cannot speak for the developer at my huddle because I [...]
Mockito: Verifying Details of an Object Passed to a Collaborator
Recently I was BDD’ing a class, and the behavior I needed to describe happened to be an object created internally (a simple value object) populated with a few attributes and passed to a collaborator. The old way I might be tempted to do this is just create a concrete implementation of the collaborator that stores [...]
Agile in a Flash
Recently I discovered an interesting blog thanks to Tim Ottinger’s comment on my TDD Anti-Patterns post, Agile in a Flash. It looks like they’re putting together a comprehensive book plus flash cards about Agile, and from the few posts I’ve read it looks very interesting. Check it out!
TDD Javascript With berilos.de JsUnit
Evaluating this framework brings back memories… the year was 2005, I had been working for a small IT firm as one of the first developers hired, which as of 2005 included three developers. I had zero process in place and had never had any experience elsewhere as this was my first job. Somehow, from reading [...]
Javascript Test Driven Development With YUI Test
Tonight I’ve decided to bounce back and try out another testing framework that’s been on my list for awhile, YUI Test. From the site: YUI Test is a testing framework for browser-based JavaScript solutions. Using YUI Test, you can easily add unit testing to your JavaScript solutions. While not a direct port from any specific [...]

