I've created a new little Java project in GitHub called buildable.
It's a set of build-time Java annotations and an annotation processor to easily create POJO builders with fluent interfaces, as described in "Growing Object Oriented Software, Guided by Tests"
I've been using this simple little pattern for several years across a few companies and many projects, and it's one of those things that can greatly simplify writing unit tests, especially on a domain model.
The GitHub wiki page explains more.
No comments:
Post a Comment