1.5. Support for Production Code

To effectively benefit from unit tests it is frequently necessary to optimize production code. The following sections show some of the possibilities. The common pattern is as usual to delegate the detailed work to a helper class which is approriately instantiated.

1.5.1. Reproducible Time Values

Sometimes you need defined time values. Either you want to reduce timeouts or times to wait