Refactoring from Template Method to Strategy can reduce code duplication in unit tests

Ivan Moore has a great post “Replacing Inheritance with Composition” at his blog, that explains how when you refactor your code from using Template Method to using Strategy can reduce the code duplication in your unit tests and also make your tests simpler. Both patterns, template method and strategy, try to solve the same problem. […]

continue reading Refactoring from Template Method to Strategy can reduce code duplication in unit tests

TDD and mock objects

If you are new to TDD and to mock objects (like me) you may want to read the paper “Mocks Aren’t Stubs” written by Martin Fowler. In this article Fowler talks about the two testing paradigms, state based and interaction based. I will use TDD, for the first time, in my next project and I […]

continue reading TDD and mock objects

Spring Web Flow

The Spring Framework has recently released a preview of a new subproject called Spring Web Flow (SWF). SWF is a component that sits on top of existing web frameworks to allow the explicit creation page flows. TSS has a nice introductory article about this new subproject. In the past months I worked for a project […]

continue reading Spring Web Flow