A tiny framework to make it easy to write Test Data Builders in Java.
9 |Test Data Builders are described in the book Growing Object-Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce. This library lets you write Test Data Builders with much less duplication and boilerplate code than the approach described in the book.
10 | 11 | -------------------------------------------------------------------------------- /src/main/java/com/natpryce/makeiteasy/sequence/ChainedSequence.java: -------------------------------------------------------------------------------- 1 | package com.natpryce.makeiteasy.sequence; 2 | 3 | import com.natpryce.makeiteasy.Donor; 4 | 5 | /** 6 | * A sequence of values, each of which is calculated from the previous value 7 | * in the sequence. 8 | * 9 | * @param