Where Are We Testing?

Java Case Study, Episode 6

By Robert C. Martin & Micah D. Martin

74 minJan 2015

We solved all the race conditions in the last episode; so in this episode things go much more smoothly. There are a few tests left in order to finish the web server. We write them. And then we find that they weren't quite testing what we thought they were testing.

We quickly finish getting our little web server running, and then start using it to send simple "Hello, World" messages to the browser.

This forces us to investigate the high level structure of an HTTP Response; and make sure that our little web server delivers that structure.

Once we can reliably communicate with the our browser, we begin working on delivering the Front Page to the browser.

Along the way we discover that tests sometimes don't test what you think they do; and that sometimes the best tests are visual.