Tag Archives: JUnit

Birthday Greetings Kata: Implementing by hexagonal architecture

Developed by Manuel Rivero & Nico Cortés This is a simple refactoring exercise by Matteo Vaccari that is meant to teach something about dependency inversion and dependency injection. The documentation: http://matteo.vaccari.name/blog/archives/154 We refactored the initial code to decouple domain objects from file system and email sending using ports and adapters as the exercise suggested. We think there’s… Read More »

The ‘Self’-Shunt Unit Testing Pattern

 Let’s say that you are a test case. One of the things that you can do is pass yourself to the objects you are testing so that you can get more information.  (Michael Feathers) Links Example sources: https://bitbucket.org/cogani/self-shunt-example/src Article: The ‘Self’-Shunt Unit Testing Pattern, by Michael Feathers