Chapter 28. Case Study: A Library Print Server

“There’s no such thing as a free lunch.”

Anonymous

Here is a library print server system. Libraries use such a system to charge for printouts of documents. The example shows how acceptance tests can cover a workflow and not just a use case.

The Context

I have consulted for Rob Walsh, the cofounder of EnvisionWare, in exploring a new object design for the print server system the company provides to libraries. In my book Prefactoring, I showed the unit test strategy and underlying object design for the system.1 I described the work flow with a concentration on how it was implemented using the internal messaging system. The following workflow concentrates on the acceptance tests.

A library patron, ...

Get Lean-Agile Acceptance Test-Driven Development: Better Software Through Collaboration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.