October 2009
Intermediate to advanced
384 pages
8h 54m
English
Many attempts to communicate are nullified by saying too much.
—Robert Greenleaf
If we are strict about our use of constructors and immutable value objects, constructing objects in tests can be a chore. In production code, we construct such objects in relatively few places and all the required values are available to hand from, for example, user input, a database query, or a received message. In tests, however, we have to provide all the constructor arguments every time we want to create an object:

The code to create all these objects makes the tests hard to read, filling them with information ...
Read now
Unlock full access